You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "tustvold (via GitHub)" <gi...@apache.org> on 2023/04/07 12:02:25 UTC
[GitHub] [arrow-datafusion] tustvold commented on pull request #5914: arrow_cast to cast to timestamptz
tustvold commented on PR #5914:
URL: https://github.com/apache/arrow-datafusion/pull/5914#issuecomment-1500226001
```
❯ select arrow_cast(timestamp '2000-01-01T00:00:00', 'Timestamp(Nanosecond, Some( "+08:00" ))'); +-----------------------------+ | Utf8("2000-01-01T00:00:00") | +-----------------------------+ | 2000-01-01T08:00:00+08:00 | +-----------------------------+ 1 row in set. Query took 0.010 seconds.
```
IMO this behaviour is a bug in arrow-cast that should be fixed, I'm not sure if we wish to expose this.
The "correct" behaviour would be
```
❯ select arrow_cast(timestamp '2000-01-01T00:00:00', 'Timestamp(Nanosecond, Some( "+08:00" ))'); +-----------------------------+ | Utf8("2000-01-01T00:00:00") | +-----------------------------+ | 2000-01-01T00:00:00+08:00 | +-----------------------------+ 1 row in set. Query took 0.010 seconds.
```
--
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