-
Notifications
You must be signed in to change notification settings - Fork 601
Consolidate MapAccess
, and Subscript
into CompoundExpr
to handle the complex field access chain
#1551
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
Merged
iffyio
merged 34 commits into
apache:main
from
goldmedal:feature/1533-dereference-expr-v3
Dec 22, 2024
+455
−287
Merged
Consolidate MapAccess
, and Subscript
into CompoundExpr
to handle the complex field access chain
#1551
Changes from 26 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
192cab4
v1 tmp
goldmedal 6be3c35
remove MapAccess
goldmedal 0e916dd
fix fmt
goldmedal 767b531
remove debug message
goldmedal 22f4e67
Merge branch 'main' into feature/1533-dereference-expr-v3
goldmedal dee8b40
fix span test
goldmedal fc1cd59
introduce CompoundExpr
goldmedal 8590896
Merge branch 'main' into feature/1533-dereference-expr-v3
goldmedal 4ad37d8
fix merge conflict
goldmedal 31a1e74
replace subscript with compound expr
goldmedal 0355290
fix snowflake syntax
goldmedal 1de9b21
limit the access chain supported dialect
goldmedal 2a32b9f
fmt
goldmedal 495d1b3
enhance doc and fix the name
goldmedal e7b55be
fix typo
goldmedal 6652905
Merge branch 'main' into feature/1533-dereference-expr-v3
goldmedal 47a5da1
update doc
goldmedal b58e50c
update doc and rename AccessExpr
goldmedal 7cb2e00
remove unused crate
goldmedal 397335a
update the out date doc
goldmedal ac25e5d
remove unused parsing
goldmedal a08e5c2
rename to `CompoundFieldAccess`
goldmedal 09b39eb
rename chain and display AccessExpr by itself
goldmedal 8968fcc
rename `parse_compound_expr`
goldmedal 1328274
fmt and clippy
goldmedal d6743e9
fix doc
goldmedal 7d030c1
remove unnecessary check
goldmedal 90e03eb
improve the doc
goldmedal 5c54d1b
remove the unused method `parse_map_access`
goldmedal 57830e2
avoid the unnecessary cloning
goldmedal 4b3818c
extract parse outer_join_expr
goldmedal 67cd877
consume LBarcket by `parse_multi_dim_subscript`
goldmedal 23aea03
Merge branch 'main' into feature/1533-dereference-expr-v3
goldmedal 94847d7
fix compile
goldmedal 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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I don't think this is necessarily correct since partiql is a redshift feature, was this required somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to integrate the conditions at
datafusion-sqlparser-rs/src/parser/mod.rs
Lines 2998 to 3000 in d0fcc06
Then, we can only check
supports_partiql
inparse_compound_expr
. 🤔Indeed, the name is a little weird for
Snowflake
but I think they mean the same thing 🤔