Repository navigation
Conversation
myrrc
reviewed
Nov 23, 2026
myrrc
left a comment
Contributor
There was a problem hiding this comment.
Thanks for the contribution, LGTM sans small changes.
|
|
||
| let dtype = DType::Extension( | ||
| Timestamp::new_with_tz( | ||
| let test_cases = [ |
Contributor
There was a problem hiding this comment.
While you're at it, can you please remove this test in favour of an .slt (I see you added one below)?
Comment on lines
+310
to
+311
| /// Converts a zoned timestamp to a `TIMESTAMP_TZ_NS` value if it is in nanoseconds, and otherwise | ||
| /// to a `TIMESTAMP_TZ` value, rescaling seconds and milliseconds to microseconds. |
| } | ||
|
|
||
| #[test] | ||
| fn try_from_timestamp_tz_ns_scalar() -> VortexResult<()> { |
Contributor
There was a problem hiding this comment.
Let's remove this test in favour of an .slt
Contributor
There was a problem hiding this comment.
Please prepend a number to this test, 85_timestamp_tz_ns.slt
Contributor
|
Let's also trim the PR description a bit, my suggestion: Map Vortex zoned nanosecond timestamp columns to TIMESTAMP_TZ_NS in DuckDB. |
read_vortex failed to bind a file with a zoned nanosecond timestamp column, and COPY of a TIMESTAMPTZ_NS column failed, because only the DuckDB-to-Vortex dtype mapping knew the type. Map zoned nanosecond timestamps to TIMESTAMP_TZ_NS in both directions: the dtype, scalars (pushed filters, constants, statistics and pushed aggregates), vectors on the COPY path, and min/max statistics. Zoned timestamps in seconds or milliseconds still fail to bind, since DuckDB has no zoned type for them. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SMtfpBcKnfP3CkWWQL6mit Signed-off-by: William Beckler <wbeckler@gmail.com>
Remove the dtype and scalar unit tests that the SQL logic test covers, remove a comment, and rename the test to 85_timestamp_tz_ns.slt. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: William Beckler <wbeckler@gmail.com>
wbeckler
force-pushed
the
wbeckler/duckdb-timestamp-tz-ns
branch
from
November 24, 2026 06:02
9d392bb to
c907fb2
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
read_vortexfails to bind a file with a zoned timestamp column whose unit is not microseconds #11519Map Vortex zoned nanosecond timestamp columns to TIMESTAMP_TZ_NS in DuckDB.
Written by Claude Code (Claude Fable 5.2), an AI coding agent, working at my direction.