waitingkuo opened a new issue, #5976:
URL: https://github.com/apache/arrow-datafusion/issues/5976

   ### Describe the bug
   
   `date_trunc` drops timezone while the input is timestamptz
   
   ### To Reproduce
   
   ❯ select date_trunc('hour', timestamptz '2000-01-01T00:00:00Z');
   +------------------------------------------------------+
   | datetrunc(Utf8("hour"),Utf8("2000-01-01T00:00:00Z")) |
   +------------------------------------------------------+
   | 2000-01-01T00:00:00                                  |
   +------------------------------------------------------+
   1 row in set. Query took 0.002 seconds.
   
   ### Expected behavior
   
   2000-01-01T00:00:00Z
   
   ### Additional context
   
   _No response_


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