Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

Microsecond precision #219

Open
zifeo opened this issue Apr 19, 2017 · 2 comments
Open

Microsecond precision #219

zifeo opened this issue Apr 19, 2017 · 2 comments

Comments

@zifeo
Copy link

zifeo commented Apr 19, 2017

When working with sql type DATETIME(6), how can we keep microsecond precision and avoid joda time millisecond restriction?

@mirabout
Copy link

Just cast the desired Sql result column to an integer of an appropriate size and expect an integer object on the user side.

@mirabout
Copy link

In general, you can decompose a date in Sql query and return the date as a list of separated integer columns if you want to bypass joda time representation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants