comphead commented on issue #5164:
URL: 
https://github.com/apache/arrow-datafusion/issues/5164#issuecomment-1416887886

   @alamb @waitingkuo likely we have some design issues on TimestampTz
   
   please consider such simple case
   ```
           let valid = StringArray::from(vec![
               "2023-01-01 04:05:06.789-8",
               "2023-01-01 04:05:06.789-7",
           ]);
   
           let array = Arc::new(valid) as ArrayRef;
           let b = cast(&array, 
&DataType::Timestamp(TimeUnit::Nanosecond,?????????)).unwrap();
   
   ```
   
   Ive put **????????** as its not really clear what has to be there, 
`Some("+07:00")` or `Some("+08:00")`? cast works for array which can contain 
mixed timezones, however the output datatype is a single value with only 1 
supported tz


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