We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
date_part
date_part doesn't work for timestamptz with non-utc timezone
arrow_cast allows us to cast timestamp to timestamptz (though the behavior of arrow_cast is incorrect now #5952)
arrow_cast
❯ select arrow_cast('2000-01-01T00:00:00'::timestamp, '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.002 seconds.
❯ select date_part('hour', arrow_cast('2000-01-01T00:00:00'::timestamp, 'Timestamp(Nanosecond, Some("+08:00"))')); +----------------------------------------------------+ | datepart(Utf8("hour"),Utf8("2000-01-01T00:00:00")) | +----------------------------------------------------+ | 0.0 | +----------------------------------------------------+ 1 row in set. Query took 0.003 seconds.
should returns 8.0
cc @tustvold will apache/arrow-rs#1936 solve this?
The text was updated successfully, but these errors were encountered:
#5952 is possibly related
Sorry, something went wrong.
date_trunc
date_bin
Successfully merging a pull request may close this issue.
Describe the bug
date_part
doesn't work for timestamptz with non-utc timezoneTo Reproduce
arrow_cast
allows us to cast timestamp to timestamptz (though the behavior of arrow_cast is incorrect now #5952)Expected behavior
should returns 8.0
Additional context
cc @tustvold will apache/arrow-rs#1936 solve this?
The text was updated successfully, but these errors were encountered: