MCPcopy Create free account
hub / github.com/apache/datafusion / make_array

Function make_array

datafusion/expr-common/src/columnar_value.rs:550–552  ·  view source on GitHub ↗

Makes an array of length `len` with all elements set to `val`

(val: i32, len: usize)

Source from the content-addressed store, hash-verified

548
549 /// Makes an array of length `len` with all elements set to `val`
550 fn make_array(val: i32, len: usize) -> ArrayRef {
551 Arc::new(Int32Array::from(vec![val; len]))
552 }
553
554 #[test]
555 fn test_display_scalar() {

Callers 15

into_array_of_sizeFunction · 0.85
bench_array_to_stringFunction · 0.85
general_replaceFunction · 0.85
arrays_zip_innerFunction · 0.85
compact_listFunction · 0.85
general_removeFunction · 0.85
plan_array_literalMethod · 0.85
plan_make_mapMethod · 0.85
array_concat_innerFunction · 0.85

Calls 1

newFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…