Skip to content

Commit b1f83e8

Browse files
committed
clarify rationale for sqllogictest-only higher-order function
1 parent 63228c3 commit b1f83e8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎datafusion/sqllogictest/src/test_context.rs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,10 @@ fn register_async_abs_udf(ctx: &SessionContext) {
720720
}
721721

722722
fn register_multi_arg_lambda_udf(ctx: &SessionContext) {
723+
// In 54 release, all built-in higher-order functions are single-parameter, but the public higher-order trait supports
724+
// user defined functions with multi-parameter lambdas. To test the lambda handling of multiple parameters, we create
725+
// a dummy udf that provides every value argument it receives as a parameter to it's lambda, the last argument:
726+
// multi_arg_higher_order_udf([..value_args], ([..value_args_as_params]) -> ...)
723727
#[derive(Debug, PartialEq, Eq, Hash)]
724728
struct MultiArgHigherOrderUdf {
725729
signature: HigherOrderSignature,

0 commit comments

Comments
 (0)