You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "waitingkuo (via GitHub)" <gi...@apache.org> on 2023/02/26 18:31:27 UTC

[GitHub] [arrow-datafusion] waitingkuo commented on issue #5398: Support to_timestamp with 2 arguments (timestamp format)

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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org