Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insert of Pandas DataFrame loses nanoseconds #68

Closed
genzgd opened this issue Nov 7, 2022 · 0 comments · Fixed by #72
Closed

Insert of Pandas DataFrame loses nanoseconds #68

genzgd opened this issue Nov 7, 2022 · 0 comments · Fixed by #72
Assignees
Labels
bug Something isn't working minor

Comments

@genzgd
Copy link
Collaborator

genzgd commented Nov 7, 2022

If inserting a Pandas Timestamp object with nanosecond precision into a ClickHouse column with datatype DateTime(9) (which should have nanosecond precision), the nanosecond value is lost. The root cause is that the underlying transformation to a ClickHouse type for Pandas Timestamp includes a conversion to a Python datetime.datetime, which only has microsecond precision.

@genzgd genzgd added the bug Something isn't working label Nov 7, 2022
@genzgd genzgd self-assigned this Nov 7, 2022
@genzgd genzgd added the minor label Nov 7, 2022
@genzgd genzgd linked a pull request Nov 11, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working minor
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant