Skip to content

Preserve nanosecond precision for timezone-aware pandas timestamps - #814

Open
dagemawinegash wants to merge 1 commit into
duckdb:mainfrom
dagemawinegash:fix/pandas-nanosecond-timestamps
Open

dagemawinegash wants to merge 1 commit into
duckdb:mainfrom
dagemawinegash:fix/pandas-nanosecond-timestamps

Conversation

@dagemawinegash

Copy link
Copy Markdown

Fixes #768.

Import pandas datetime64[ns, tz] columns as TIMESTAMPTZ_NS so timestamps within the same microsecond stay distinct. When returning the data to pandas, keep nanosecond precision and apply the session timezone.

The regression tests cover UTC, Asia/Kathmandu, timestamps before 1970, and NaT. On Windows, 112 targeted tests passed with pandas 3 and 17 compatibility checks passed with pandas 2.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant