waitingkuo commented on issue #4106:
URL: 
https://github.com/apache/arrow-datafusion/issues/4106#issuecomment-1307081076

   @avantgardnerio 
   
   perhaps we could force user to add the timezone offset while casting string 
to timestamptz
   
   e.g. 
   correct
   `2000-01-01T02:00:00+00:00`
   `2000-01-01T02:00:00-06:00`
   `2000-01-01T02:00:00-07:00`
   `2000-01-01T02:00:00Z` (this is a special case)
   
   note that if we set time zone as +08:00
   `2000-01-01T02:00:00-06:00`  becomes`2000-01-01T16:00:00+08:00`
   
   incorrect
   `2000-03-13T02:30:00` -> this is the one might be illegal in some timezone
   `2000-03-01T02:30:00` -> this should work for all the timezone but still 
disallow it


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