-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add lambda support and array_transform udf #21679
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
gstvg
wants to merge
77
commits into
apache:main
Choose a base branch
from
gstvg:lambda_and_array_transform
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
77 commits
Select commit
Hold shift + click to select a range
dbf2aa5
add lambda support
gstvg fa4a8fb
add lambdas: None to existing ScalarFunctionArgs in tests/benches
gstvg b18d214
simplify lambda support
gstvg d844b2d
rename LambdaColumn to LambdaVariable
gstvg e1921eb
feat: add LambdaUDF
gstvg 1f19c64
feat: remove lambda support for ScalarUDF
gstvg 570cc53
temporarily add pr description as DOC.md
gstvg 83dfbdd
add lambda note in substrait consumer
gstvg 34137e1
add LambdaSignature
gstvg 3ded115
improve lambda type coercion
gstvg 82930ec
lambda function type coercion: stop using unstable Iterator::eq_by
gstvg 86d5999
remove signature section from DOC.md
gstvg 60cabc0
polish lambda impl
gstvg 41152c3
minor improvoments
gstvg 2be9e54
Merge branch 'main' into lambda4
gstvg 90eb08f
improve lambdas
gstvg d874db7
cargo fmt
gstvg a59ffe8
simplify LambdaUDF coerce_value_types
gstvg cd22c04
remove DOC.md
gstvg 0188d40
add physical lambda function comments
gstvg 6f2c92b
remove secondary lambda features to be added later
gstvg b3bdc48
fix removal of lambda features
gstvg 9728a2e
fix typo
gstvg 811aa0a
Merge branch 'main' of https://github.com/apache/datafusion into lambda4
gstvg f724ef5
remove paste! from lambda macros
gstvg 5380884
fix lambda sqllogictests
gstvg d75dfe3
improve Expr::Lambda docs
gstvg a241a51
add clarifying comment on lambda type coercion
gstvg 547c148
simplify lambda type coercion
gstvg 6ae73cb
handle null values in array_transform
gstvg 39db62b
simplify LambdaUDF::lambdas_parameters
gstvg 7a7d371
cargo fmt
gstvg 83fb18d
add tip on LambdaUDF::lambdas_parameters docs to LambdaFunction helper
gstvg e76ff25
minor fixes
gstvg 51dfa81
Merge branch 'main' of https://github.com/apache/datafusion into lambda4
gstvg 6c32ef8
minor fixes
gstvg 27a3e24
simplify array_transform tests
gstvg 93e66f7
evaluate LambdaVariable by index instead of name
gstvg a9d0e6c
add LambdaUDF::clean_null_values
gstvg 69c44fc
rename LambdaUDF::lambdas_parameters to lambda_parameters
gstvg 66839d3
rename LambdaFunction to HigherOrderFunction, LambdaUDF to HigherOrde…
gstvg f0cf8d7
fix typo
gstvg 1b7f4bf
handle CaseWhen optimization
gstvg 6d7c52a
remove HigherOrderUDF::as_any
gstvg 7255820
add TaskContext::higher_order_functions
gstvg 96d8ad2
return DataType::Null for Expr::Lambda ExprSchemable::get_type
gstvg 474b22e
add higher order function type coercion tests
gstvg 954a360
avoid clone at HigherOrderFunctionExpr::with_nullable
gstvg 5c2c72a
include index in physical LambdaVariable formatting
gstvg 2259f70
improve physical LambdaVariable
gstvg 8571853
fix typo udf to udhof at HigherOrderFunctionExpr
gstvg 3c9fe39
include higher order functions in scalar function sql user guide docs
gstvg 3486e53
Merge branch 'main' of https://github.com/apache/datafusion into lambda4
gstvg 5c0b41d
Merge branch 'main' into lambda4
gstvg ca260a7
handle wrapped lambdas
gstvg 5a6f470
Merge branch 'main' of https://github.com/apache/datafusion into lambda4
gstvg 98d365a
Merge branch 'main' of https://github.com/apache/datafusion into lambda4
gstvg 9ad1d6f
remove PhysicalExpr::as_any from lambda impl
gstvg 94e37db
use Field::eq instead of manually checking properties
gstvg 02ccbb6
use OffsetSizeTrait::as_usize() instead of to_usize().unwrap()
gstvg 9455140
Compute lambda_positions and arg_fields in a single iteration in High…
gstvg 7f72b5b
rename ContextProvider::udhof_names to higher_order_function_names
gstvg 27fcc8e
add issue link about volatile functions in ListingTable partition pru…
gstvg 9530ded
use internal_err with a faulty value_fields_with_higher_order_udf
gstvg 8977eae
fix typo in array_transform docs
gstvg f9507fa
check new children len in LambdaVariable::with_new_children
gstvg 553988a
fix: use the traversed expression instead of the top level one in cas…
gstvg 797d4be
normalize lambda parameter names in sql parser and quote them in sql …
gstvg 1b668db
cargo fmt
gstvg 1b8712f
address pr review
gstvg 9a83018
address pr review
gstvg 85e6d48
Apply suggestions from code review
gstvg bee43c3
rename udhof to higher_order_function
gstvg e481898
add comment on all_unique
gstvg 098fb1e
Apply suggestion from review
gstvg 03a65bc
reintroduce comment removed by github apply suggestion from review
gstvg bc3f873
Merge branch 'main' of https://github.com/apache/datafusion into lamb…
gstvg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.