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

   hi @alamb 
   
   do you think we should following postgresql formatting syntax or chorno's 
<https://docs.rs/chrono/latest/chrono/format/strftime/index.html#specifiers>
   
   
   in your example, the input contains timezone
   ```bash
   ❯  select to_timestamp('2014-05-11 01:07:34.779000+01:00', 'YYYY-MM-DD 
HH:MI:SS.NS');
   Plan("Coercion from [Utf8, Utf8] to the signature Uniform(1, [Int64, 
Timestamp(Nanosecond, None), Timestamp(Microsecond, None), 
Timestamp(Millisecond, None), Timestamp(Second, None), Utf8]) failed.")
   ```
   postgrseql's `to_timestamp` return `timestamptz` but datafusion's returns 
`timestamp`
   do we want to align postgreql's return type as well?


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