tustvold commented on PR #5914:
URL: 
https://github.com/apache/arrow-datafusion/pull/5914#issuecomment-1500226001

   ```
   ❯ select arrow_cast(timestamp '2000-01-01T00:00:00', 'Timestamp(Nanosecond, 
Some( "+08:00" ))'); +-----------------------------+ | 
Utf8("2000-01-01T00:00:00") | +-----------------------------+ | 
2000-01-01T08:00:00+08:00 | +-----------------------------+ 1 row in set. Query 
took 0.010 seconds.
   ```
   
   IMO this behaviour is a bug in arrow-cast that should be fixed, I'm not sure 
if we wish to expose this.
   
   The "correct" behaviour would be
   
   ```
   ❯ select arrow_cast(timestamp '2000-01-01T00:00:00', 'Timestamp(Nanosecond, 
Some( "+08:00" ))'); +-----------------------------+ | 
Utf8("2000-01-01T00:00:00") | +-----------------------------+ | 
2000-01-01T00:00:00+08:00 | +-----------------------------+ 1 row in set. Query 
took 0.010 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