Skip to content

Conversation

@glasstiger
Copy link
Collaborator

This change brings nanosecond precision support for timestamps in the client.
It complements a recent change on the server side, - the introduction of the TIMESTAMP_NS type.
This new column type can store timestamps with nanoseconds precision.

Now when using protocol v2, any timestamp passed to the client in nanoseconds (unit 'ns') will be sent to the server with nanos precision.
Everything else is sent with micros precision, just as before.
The above is the same for timestamp columns and for the designated timestamp too.

Protocol v1 is not changing, it is kept backwards and InfluxDB compatible.
All timestamp column values are sent with micros precision, and it uses nanos precision for the designated timestamp.
Please, note that although designated timestamp values have always been sent with nanos precision, the server stored them as micros as it had no support for nanos precision.

@glasstiger glasstiger merged commit 42f52a9 into main Oct 14, 2025
4 checks passed
@glasstiger glasstiger deleted the ia_nanos branch November 3, 2025 17:40
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.

3 participants