feat(functions-nested): add filter and transform aliases for array_filter/array_transform#22588
Closed
ologlogn wants to merge 2 commits into
Closed
feat(functions-nested): add filter and transform aliases for array_filter/array_transform#22588ologlogn wants to merge 2 commits into
filter and transform aliases for array_filter/array_transform#22588ologlogn wants to merge 2 commits into
Conversation
…y_filter/array_transform Mirrors Spark/DuckDB naming conventions.
gabotechs
reviewed
May 28, 2026
| Volatility::Immutable, | ||
| ), | ||
| aliases: vec![String::from("list_filter")], | ||
| aliases: vec![String::from("list_filter"), String::from("filter")], |
Contributor
There was a problem hiding this comment.
These aliases might be a bit to generic and opinionated for them to be contributed here. I can imagine how this is very likely to collide with something else.
Have you tried just adding this aliases in your own code? registering these UDFs with your custom aliases should be trivial.
Author
|
closing it, because the alises are too general and might conflict. 👍 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Which issue does this PR close?
Partially addresses #14509 — adds
filterandtransformas additional aliases forarray_filterandarray_transform.Rationale for this change
Spark uses
filterandtransformas the primary names for these functions. Adding these aliases improves compatibility and discoverability for users coming from Spark.What changes are included in this PR?
array_filter: addsfilteralias (alongside existinglist_filter)array_transform: addstransformalias (alongside existinglist_transform)Are these changes tested?
Yes —
array_filter.sltandarray_transform.slteach have a test for the new alias.Are there any user-facing changes?
Yes —
filter(array, lambda)andtransform(array, lambda)are now available as SQL functions.