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/11/07 07:11:28 UTC

[GitHub] [arrow-datafusion] HaoYang670 commented on issue #3944: Bug with intervals and logical and/or

HaoYang670 commented on issue #3944:
URL: https://github.com/apache/arrow-datafusion/issues/3944#issuecomment-1305178788

   I am not sure whether this is a bug in sql-parser, cc @andygrove . This is what I get
   ```sql
   ❯ select interval '5 days' > interval '3 days';
   NotImplemented("Unsupported interval argument. Expected string literal, got: BinaryOp { left: Value(SingleQuotedString(\"5 days\")), op: Gt, right: Interval { value: Value(SingleQuotedString(\"3 days\")), leading_field: None, leading_precision: None, last_field: None, fractional_seconds_precision: None } }")
   ❯ select (interval '5 days') > interval '3 days';
   +-----------------------------------------------------------------+
   | IntervalDayTime("21474836480") > IntervalDayTime("12884901888") |
   +-----------------------------------------------------------------+
   | true                                                            |
   +-----------------------------------------------------------------+
   1 row in set. Query took 0.006 seconds.
   ```


-- 
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