Skip to content

Conversation

Jens-H
Copy link
Contributor

@Jens-H Jens-H commented Feb 18, 2023

It looks like DuckDB's Value::TIMESTAMP behavior changed if used for TIMESTAMPTZ columns. The test case was failing.

This PR adds a Subclass (without any additional logic) named DuckDBTimestampTZ. It is created if a OffsetDateTime is used in the setObject method, signaling the need for a timezone. Later on it is possible to distinguish in the JNI code between Value::TIMESTAMP and Value::TIMESTAMPTZ depending on which Java object was handed over.

One of my older test cases had quite a long runtime. I used the opportunity to shorten it about one magnitude.

@Mytherin Mytherin merged commit 8762b6a into duckdb:master Feb 20, 2023
@Mytherin
Copy link
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants