comphead commented on issue #3664:
URL: https://github.com/apache/arrow-rs/issues/3664#issuecomment-1418249637

   ```
           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();
   ```
   
   As I mentioned 
https://github.com/apache/arrow-datafusion/issues/5164#issuecomment-1416887886 
currently the `cast` function supports one target datatype which includes only 
1 timezone info, however input array can have mixed timezones, like in example 
above
   
   @viirya @waitingkuo please let me know your thoughts. Probably cast 
functions should accept array type `TimestampNanosecondArray` instead of 
primitive type `DataType::Timestamp`


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