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

Method invoke_with_args

datafusion/physical-expr/src/higher_order_function.rs:564–575  ·  view source on GitHub ↗
(
            &self,
            args: HigherOrderFunctionArgs,
        )

Source from the content-addressed store, hash-verified

562 }
563
564 fn invoke_with_args(
565 &self,
566 args: HigherOrderFunctionArgs,
567 ) -> Result<ColumnarValue> {
568 match &args.args[0] {
569 ValueOrLambda::Lambda(lambda) => lambda.evaluate(
570 &[&|| Ok(Arc::new(NullArray::new(args.number_rows)))],
571 |arrays| Ok(arrays.to_vec()),
572 ),
573 ValueOrLambda::Value(value) => Ok(value.clone()),
574 }
575 }
576 }
577
578 #[test]

Callers 1

evaluateMethod · 0.45

Calls 4

newFunction · 0.85
to_vecMethod · 0.80
evaluateMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected