jayzhan211 commented on issue #10310:
URL: https://github.com/apache/datafusion/issues/10310#issuecomment-2089936769

   Yes, you are right!
   
   This is one with `()`
   ```
   sql: BinaryOp { left: Identifier(Ident { value: "column1", quote_style: None 
}), op: GtEq, right: Nested(AtTimeZone { timestamp: Cast { expr: 
Value(SingleQuotedString("2019-03-27T22:00:00.000Z")), data_type: 
Timestamp(None, None), format: None }, time_zone: "Europe/Brussels" }) }
   sql: AtTimeZone { timestamp: Cast { expr: 
Value(SingleQuotedString("2019-03-27T22:00:00.000Z")), data_type: 
Timestamp(None, None), format: None }, time_zone: "Europe/Brussels" }
   ```
   
   This one is without `()`
   ```
   sql: AtTimeZone { timestamp: BinaryOp { left: Identifier(Ident { value: 
"column1", quote_style: None }), op: GtEq, right: Cast { expr: 
Value(SingleQuotedString("2019-03-27T22:00:00.000Z")), data_type: 
Timestamp(None, None), format: None } }, time_zone: "Europe/Brussels" }
   ```
   I think it is parsed as 
   `(column1 >= '2019-03-27T22:00:00.000Z'::timestamp) at time zone 
'Europe/Brussels'`
   which ideally should be parsed as
   `column1 >= ('2019-03-27T22:00:00.000Z'::timestamp at time zone 
'Europe/Brussels')`


-- 
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-unsubscr...@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to