You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/07/28 19:05:13 UTC

[GitHub] [arrow-datafusion] alamb opened a new pull request, #2981: Update sqlparser to 0.19

alamb opened a new pull request, #2981:
URL: https://github.com/apache/arrow-datafusion/pull/2981

   # Which issue does this PR close?
   
   NA 
    # 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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-datafusion] alamb commented on a diff in pull request #2981: Update sqlparser to 0.19

Posted by GitBox <gi...@apache.org>.
alamb commented on code in PR #2981:
URL: https://github.com/apache/arrow-datafusion/pull/2981#discussion_r933477874


##########
datafusion/sql/src/planner.rs:
##########
@@ -2184,7 +2178,7 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
 
     fn sql_interval_to_literal(
         &self,
-        value: String,
+        value: SQLExpr,

Review Comment:
   Intervals now support arbitrary expressions, not just strings: https://github.com/sqlparser-rs/sqlparser-rs/pull/517



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-datafusion] alamb commented on a diff in pull request #2981: Update sqlparser to 0.19

Posted by GitBox <gi...@apache.org>.
alamb commented on code in PR #2981:
URL: https://github.com/apache/arrow-datafusion/pull/2981#discussion_r932588084


##########
datafusion/sql/src/planner.rs:
##########
@@ -1819,15 +1819,6 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
                 right: Box::new(self.sql_expr_to_logical_expr(*right, schema, ctes)?),
             }),
 
-
-            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

Review Comment:
   https://github.com/sqlparser-rs/sqlparser-rs/issues/472 is indeed fixed 🎉  (thanks @togami2864)



##########
datafusion/sql/src/planner.rs:
##########
@@ -2278,6 +2269,17 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
         let mut result_days: i64 = 0;
         let mut result_millis: i64 = 0;
 
+        // Only handle string exprs for now
+        let value = match &value {

Review Comment:
   I am not sure about this one -- now the arguments to `INTERVAL` can be an arbitrary expression rather than just a `String` (after https://github.com/sqlparser-rs/sqlparser-rs/pull/517)
   
   cc @ovr any thoughts? 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-datafusion] ursabot commented on pull request #2981: Update sqlparser to 0.19

Posted by GitBox <gi...@apache.org>.
ursabot commented on PR #2981:
URL: https://github.com/apache/arrow-datafusion/pull/2981#issuecomment-1199882642

   Benchmark runs are scheduled for baseline = 811bad406f5ab4d58352cedc64e28f2bcacba9a9 and contender = 2d23860df9e449e5ec26307d82d8a30b7e133bb6. 2d23860df9e449e5ec26307d82d8a30b7e133bb6 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
   Conbench compare runs links:
   [Skipped :warning: Benchmarking of arrow-datafusion-commits is not supported on ec2-t3-xlarge-us-east-2] [ec2-t3-xlarge-us-east-2](https://conbench.ursa.dev/compare/runs/9023b1ddd41a4efe9ebf0a94f3913239...a6a729d5902049e0b1ba54b66b77c389/)
   [Skipped :warning: Benchmarking of arrow-datafusion-commits is not supported on test-mac-arm] [test-mac-arm](https://conbench.ursa.dev/compare/runs/0a2c6cf87bb54a95bfb887d50518ae57...248f410e8603407288134d81729d2334/)
   [Skipped :warning: Benchmarking of arrow-datafusion-commits is not supported on ursa-i9-9960x] [ursa-i9-9960x](https://conbench.ursa.dev/compare/runs/4d5642f9ffdd4aa7b403b5cf2677e297...cc9325923a4e4abe929650b81c0cd433/)
   [Skipped :warning: Benchmarking of arrow-datafusion-commits is not supported on ursa-thinkcentre-m75q] [ursa-thinkcentre-m75q](https://conbench.ursa.dev/compare/runs/fa866d9e87f142e1a770a175e4c3bd8f...4888d7b01e6b482597c2def4c6d14bbd/)
   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
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-datafusion] alamb merged pull request #2981: Update sqlparser to 0.19

Posted by GitBox <gi...@apache.org>.
alamb merged PR #2981:
URL: https://github.com/apache/arrow-datafusion/pull/2981


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-datafusion] alamb commented on pull request #2981: Update sqlparser to 0.19

Posted by GitBox <gi...@apache.org>.
alamb commented on PR #2981:
URL: https://github.com/apache/arrow-datafusion/pull/2981#issuecomment-1199879023

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-datafusion] alamb commented on pull request #2981: Update sqlparser to 0.19

Posted by GitBox <gi...@apache.org>.
alamb commented on PR #2981:
URL: https://github.com/apache/arrow-datafusion/pull/2981#issuecomment-1199879169

   Thanks for the review @xudong963 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org