Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Nanoseconds ignored when writing Points with RFC string format #829

Copy link
Copy link
Open
@fcoetzee

Description

@fcoetzee
Issue body actions

Note that in the file client/write/point.py the ciso8601 library is used to convert
timestamp strings to datetime.datetime objects,

However, the datetime.datetime format returned no longer supports nano-seconds, it ignores everything past microseconds

In [181]: ciso8601.parse_datetime('1996-02-25T21:20:00.001001231Z')
Out[181]: datetime.datetime(1996, 2, 25, 21, 20, 0, 1001, tzinfo=datetime.timezone.utc)

Since nano-seconds are the default write precision for the DataBase, this is a major failure

No simple solution here -- the datetime libraries use dto support nanosecs, but in a streak of purism were changed to be POSIX compliant (and posix only talked about microseconds).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.