-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[sqlparser-0.21] Update trimExpr members during planning #3181
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
[sqlparser-0.21] Update trimExpr members during planning #3181
Conversation
@ayushdg Could you please rebase against |
bd827f6
to
1e46ff8
Compare
Done @andygrove! Lemme know if there's anything else needed for this pr. |
Codecov Report
@@ Coverage Diff @@
## sqlparser-0.21 #3181 +/- ##
==================================================
- Coverage 85.84% 85.84% -0.01%
==================================================
Files 291 291
Lines 52898 52898
==================================================
- Hits 45411 45410 -1
- Misses 7487 7488 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
LGTM. Thanks @ayushdg
It would be good to add some tests as well either in this PR or as a follow on PR. |
* Changes to planning for SHOW TABLES due to changes in sqlparser (#3193) * Update planning for LIKE due to changes in sqlparser (#3194) * rename array function to make_array (#3199) * [sqlparser-0.21] Update trimExpr members during planning (#3181) * Update sqlparser version to use main from git * Update SqlExpr::Trim struct to match latest sqlparser changes * use sqlparser 0.21 (#3202) Co-authored-by: Ayush Dattagupta <ayushdg95@gmail.com>
* Changes to planning for SHOW TABLES due to changes in sqlparser (apache#3193) * Update planning for LIKE due to changes in sqlparser (apache#3194) * rename array function to make_array (apache#3199) * [sqlparser-0.21] Update trimExpr members during planning (apache#3181) * Update sqlparser version to use main from git * Update SqlExpr::Trim struct to match latest sqlparser changes * use sqlparser 0.21 (apache#3202) Co-authored-by: Ayush Dattagupta <ayushdg95@gmail.com>
* Changes to planning for SHOW TABLES due to changes in sqlparser (apache#3193) * Update planning for LIKE due to changes in sqlparser (apache#3194) * rename array function to make_array (apache#3199) * [sqlparser-0.21] Update trimExpr members during planning (apache#3181) * Update sqlparser version to use main from git * Update SqlExpr::Trim struct to match latest sqlparser changes * use sqlparser 0.21 (apache#3202) Co-authored-by: Ayush Dattagupta <ayushdg95@gmail.com>
Which issue does this PR close?
Extension of apache/datafusion-sqlparser-rs#568 into datafusion
Rationale for this change
Updates were made to sqlparser parsing logic apache/datafusion-sqlparser-rs#573 to handle optional trim flag and trim what Expr's better matching postgresql syntax.
What changes are included in this PR?
This pr updates the planner logic to handle the changes made to the struct members of Expr::Trim from sqlparser.
Are there any user-facing changes?
Note: Errors are related to other changes made in sqlparser around the handling of
like/ilike
being addressed in #3101. Might need to consolidate both the changes in a single pr for tests to pass.