-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
chore(deps): Update sqlparser to 0.54.0
#14255
Conversation
query ? | ||
select interval '5' years | ||
---- | ||
5.000000000 secs | ||
|
||
60 mons |
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.
this certainly seems much more correct to me -- I also removed the now out of date comment.
@@ -984,84 +984,141 @@ impl<S: ContextProvider> SqlToRel<'_, S> { | |||
Ok(Expr::Cast(Cast::new(Box::new(expr), dt))) | |||
} | |||
|
|||
fn sql_subscript_to_expr( | |||
fn sql_compound_field_access_to_expr( |
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.
The code to plan CompoundFieldAccess is directly copy/pasted from @goldmedal 's PR
0.54.0
/// | ||
/// For example, `foo.bar` would be represented as a two element vector | ||
/// `["foo", "bar"]` | ||
fn from_idents(mut idents: Vec<String>) -> Option<Self> { |
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.
Changed the signature to be easier to work with (pass the vec by ownership rather than &mut)
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.
Thanks @alamb. Overall look good to me 👍
# left_join_using_qualified (snowflake syntax) | ||
query error DataFusion error: This feature is not implemented: Invalid identifier in USING clause\. Expected single identifier, got t2\.c2 | ||
SELECT t1.c1, t2.c2 FROM test_partition_table t1 JOIN test_partition_table t2 USING (t2.c2) ORDER BY t2.c2; |
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.
👍
@alamb There are some conflicts here. |
Co-authored-by: Jax Liu <[email protected]>
… into alamb/upgrade_sqlparser
Thank you for the review @goldmedal -- I have merged up and resolved the conflicts |
🚀 |
Which issue does this PR close?
Rationale for this change
Keep up with latest SQL parser dependencies
What changes are included in this PR?
Are these changes tested?
Yes by CI
Are there any user-facing changes?