Skip to content

creation of datetime objects in riak ts record sets should be optional [JIRA: CLIENTS-832] #454

@seanjensengrey

Description

@seanjensengrey

When returning record sets from Riak TS queries, the client automatically converts Riak TS timestamps into datetime objects and vice versa.

For many applications where Python is an intermediate layer, converting into a datetime is not required.

Additionally there are some timestamps that do not roundtrip properly.

The first of which is 1001 (code taken from https://github.com/basho/riak-python-client/blob/2.4.2/riak/transports/pbc/codec.py#L86 )

In [69]: d._unix_time_millis(d._datetime_from_unix_time_millis(1001))
Out[69]: 1000

It would be nice if the conversion to datetime objects as optional.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions