-
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
Test upgrade to sqlparser-rs 0.54 #14198
Conversation
98938a9
to
8632bdd
Compare
SQLExpr::Subscript { expr, subscript } => { | ||
self.sql_subscript_to_expr(*expr, subscript, schema, planner_context) | ||
} | ||
SQLExpr::CompoundFieldAccess { root, access_chain } => 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.
The code to plan CompoundFieldAccess is directly copy/pasted from @goldmedal 's PR
@@ -44,7 +44,7 @@ Interval(MonthDayNano) Interval(MonthDayNano) | |||
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.
8632bdd
to
5bb20ad
Compare
/// | ||
/// For example, `foo.bar` would be represented as a two element vector | ||
/// `["foo", "bar"]` | ||
pub 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.
i made this public and cleaned up the signature so I could reuse it when dealing with the changes to USING
planning
However I am not quite sure what a USING(foo.bar)
would actually mean 🤔 Maybe when joining across multiple schemas...
I could also revert this change and just make the planner error if it got a multi-part ObjectName in a USING
clause ..
Superceded by #14255 |
Which issue does this PR close?
0.54.0
datafusion-sqlparser-rs#1597Rationale for this change
I want to test the upgrade to the latest sqlparser before we release a new version of sqlparser as a sanity check / test downstream implications
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?