-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Feature: support cast date
to timestamp
with tz
#14638
Comments
It seems that |
take |
I'm not sure if However when casting a |
Datafusion-wise, I tested this feature in this branch and it works as expected: > select to_char(arrow_cast('2023-09-04'::date, 'Timestamp(Second, Some("UTC"))'), '%Y-%m-%dT%H:%M:%S%.3f');
+--------------------------------------------------------------------------------------------------------------+
| to_char(arrow_cast(Utf8("2023-09-04"),Utf8("Timestamp(Second, Some("UTC"))")),Utf8("%Y-%m-%dT%H:%M:%S%.3f")) |
+--------------------------------------------------------------------------------------------------------------+
| 2023-09-04T00:00:00.000 |
+--------------------------------------------------------------------------------------------------------------+
1 row(s) fetched.
Elapsed 0.027 seconds. Once apache/arrow-rs#7141 lands, I'll follow up with some test cases in |
Is your feature request related to a problem or challenge?
Describe the solution you'd like
No response
Describe alternatives you've considered
Maybe it should be implemented in arrow-rs?
Additional context
No response
The text was updated successfully, but these errors were encountered: