Skip to content

Time field in Point is restricted to Long #85

@J0s3f

Description

@J0s3f

It would make sense to make it possible to use something bigger than long for time in the Point class.
We use nanosecond precision for all data in an project, and Long just isn't suitable.
In the "old" client there is a similar bug and I tried to fix it by allowing Number for all timestamps.

The proper solution IMO would be to have points with Instant as time. Instant is the semantically correct class to use and converting an instant into nanoseconds for the line protocol works by simply converting the epoch seconds to string and appending the nanoseconds as string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions