Skip to content

TIMESTAMP_NS nanoseconds are truncated #571

@kostya-sh

Description

@kostya-sh

E.g.

java.sql.Timestamp ts = new java.sql.Timestamp(millis);
ts.setNanos(123456789);
ps.setTimestamp(1, ts); // column 1 has type TIMESTAMP_NS

DuckDBTimestamp converts the Timestamp to micros and as result nanosecond part (789 from the example) is not stored.

The same happens on reading the value back

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions