Skip to content

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Jul 28, 2022

Which issue does this PR close?

Closes #2983

Rationale for this change

keep up with dependencies

What changes are included in this PR?

Update sqlparser pin

Are there any user-facing changes?

no

@github-actions github-actions bot added core Core DataFusion crate logical-expr Logical plan and expressions sql SQL Planner labels Jul 28, 2022
SQLExpr::UnaryOp { op, expr } => match (&op, expr.as_ref()) {
// The AST for Exists does not support the NOT EXISTS case so it gets
// wrapped in a unary NOT
// https://github.com/sqlparser-rs/sqlparser-rs/issues/472
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apache/datafusion-sqlparser-rs#472 is indeed fixed 🎉 (thanks @togami2864)

let mut result_millis: i64 = 0;

// Only handle string exprs for now
let value = match &value {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure about this one -- now the arguments to INTERVAL can be an arbitrary expression rather than just a String (after apache/datafusion-sqlparser-rs#517)

cc @ovr any thoughts?

@alamb alamb marked this pull request as ready for review July 29, 2022 17:23
fn sql_interval_to_literal(
&self,
value: String,
value: SQLExpr,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intervals now support arbitrary expressions, not just strings: apache/datafusion-sqlparser-rs#517

Copy link
Member

@xudong963 xudong963 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! @alamb

@alamb
Copy link
Contributor Author

alamb commented Jul 29, 2022

SInce I don't think this has any particularly controversial changes, I am going to merge it right in

@alamb alamb merged commit 2d23860 into apache:master Jul 29, 2022
@alamb alamb deleted the alamb/update_sql_parser branch July 29, 2022 19:27
@alamb
Copy link
Contributor Author

alamb commented Jul 29, 2022

Thanks for the review @xudong963

@ursabot
Copy link

ursabot commented Jul 29, 2022

Benchmark runs are scheduled for baseline = 811bad4 and contender = 2d23860. 2d23860 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ec2-t3-xlarge-us-east-2] ec2-t3-xlarge-us-east-2
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on test-mac-arm] test-mac-arm
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ursa-i9-9960x] ursa-i9-9960x
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ursa-thinkcentre-m75q] ursa-thinkcentre-m75q
Buildkite builds:
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate logical-expr Logical plan and expressions sql SQL Planner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants