Skip to content

Conversation

@staticlibs
Copy link
Collaborator

This PR adds support for fetching TIME_NS values as instances of java.time.LocalTime class, example:

LocalTime lt = rs.getObject(1, LocalTime.class);

Nanosecond precision is maintained on fetching TIME_NS values from DB.

Currently it is not possible to preserve nanosecond precision when inserting TIME_NS values using query parameters.

The support is necessary to fix test_all_types failures introduced by duckdb/duckdb#20361.

This PR adds support for fetching `TIME_NS` values as instances of
`java.time.LocalTime` class, example:

```java
LocalTime lt = rs.getObject(1, LocalTime.class);
```

Nanosecond precision is maintained on fetching `TIME_NS` values from DB.

Currently it is not possible to preserve nanosecond precision when
inserting `TIME_NS` values using query parameters.

The support is necessary to fix `test_all_types` failures introduced by
duckdb/duckdb#20361.
@staticlibs
Copy link
Collaborator Author

Merging to allow vendoring PR #513 to pass tests and be integrated, bringing in updated engine with duckdb/duckdb#20361 included.

@staticlibs staticlibs merged commit 7e9a32b into duckdb:main Jan 8, 2026
11 of 12 checks passed
@staticlibs staticlibs deleted the time_ns_type branch January 8, 2026 22:28
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.

1 participant