Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow ARROW_CAST to cast to TimestampTz #5913

Closed
waitingkuo opened this issue Apr 7, 2023 · 0 comments · Fixed by #5914
Closed

allow ARROW_CAST to cast to TimestampTz #5913

waitingkuo opened this issue Apr 7, 2023 · 0 comments · Fixed by #5914
Labels
enhancement New feature or request

Comments

@waitingkuo
Copy link
Contributor

Is your feature request related to a problem or challenge?

ARROW_CAST was added in #5166 by @alamb which enable casting to arbitrary arrotypes.

However, casting to timetamptz (e.g. Timestamp(Nanosecond, Some("+00:00")) isn't supported yet

Describe the solution you'd like

make this work

❯ select arrow_cast(now(), 'Timestamp(Nanosecond, Some( "+08:00" ))');
+----------------------------------+
| now()                            |
+----------------------------------+
| 2023-04-07T19:42:22.197975+08:00 |
+----------------------------------+
1 row in set. Query took 0.002 seconds.

Describe alternatives you've considered

No response

Additional context

No response

@waitingkuo waitingkuo added the enhancement New feature or request label Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant