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

Function map

datafusion/functions-nested/src/map.rs:46–50  ·  view source on GitHub ↗

Returns a map created from a key list and a value list

(keys: Vec<Expr>, values: Vec<Expr>)

Source from the content-addressed store, hash-verified

44
45/// Returns a map created from a key list and a value list
46pub fn map(keys: Vec<Expr>, values: Vec<Expr>) -> Expr {
47 let keys = make_array(keys);
48 let values = make_array(values);
49 Expr::ScalarFunction(ScalarFunction::new_udf(map_udf(), vec![keys, values]))
50}
51
52create_func!(MapFunc, map_udf);
53

Callers 3

test_fn_mapFunction · 0.85
append_byte_mapMethod · 0.85

Calls 2

make_arrayFunction · 0.85
ScalarFunctionClass · 0.85

Tested by 2

test_fn_mapFunction · 0.68