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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to