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

   @jayzhan211 
   
   I understand that the issue runs a bit deeper as we employ sqlparser for 
converting SQL queries into statements. 
   
   
   `"SELECT c FROM t WHERE c >= '2019-03-27T22:00:00.000Z'::timestamp at time 
zone 'Europe/Brussels'"`
   
   `[Statement(Query(Query { with: None, body: Select(Select { distinct: None, 
top: None, projection: [UnnamedExpr(Identifier(Ident { value: "c", quote_style: 
None }))], into: None, from: [TableWithJoins { relation: Table { name: 
ObjectName([Ident { value: "t", quote_style: None }]), alias: None, args: None, 
with_hints: [], version: None, partitions: [] }, joins: [] }], lateral_views: 
[], selection: Some(AtTimeZone { timestamp: BinaryOp { left: Identifier(Ident { 
value: "c", 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" }), 
group_by: Expressions([]), cluster_by: [], distribute_by: [], sort_by: [], 
having: None, named_window: [], qualify: None, value_table_mode: None }), 
order_by: [], limit: None, limit_by: [], offset: None, fetch: None, locks: [], 
for_clause: None }))]
   `
   
   
https://github.com/apache/datafusion/blob/dac2a7edc9eefc8b5c5ddf7320a8fbade432a1dd/datafusion/sql/src/parser.rs#L315


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to