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

support range 0001-01-01 to 9999-12-31 for dates #47

Closed
tswast opened this issue Dec 3, 2021 · 1 comment
Closed

support range 0001-01-01 to 9999-12-31 for dates #47

tswast opened this issue Dec 3, 2021 · 1 comment
Labels
api: bigquery Issues related to the googleapis/python-db-dtypes-pandas API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@tswast
Copy link
Collaborator

tswast commented Dec 3, 2021

Currently, the date data type only supports a range of a few hundred years (nanoseconds since 1970-01-01 in a 64-bit integer). It'd be nice if there was an (optional) way to support a wider range.

One possible way to do this would be to store in different units (I think microsecond would be sufficient), but that could cause operations such as combining a date + time column into a datetime / timestamp column to be more complex.

Alternatively, we could provide a suite of thin wrappers around the pyarrow date types. This might be better accomplished by a different package such as Fletcher, though.

@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-db-dtypes-pandas API. label Dec 3, 2021
@tswast tswast added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. api: bigquery Issues related to the googleapis/python-db-dtypes-pandas API. and removed api: bigquery Issues related to the googleapis/python-db-dtypes-pandas API. labels Dec 3, 2021
@tswast
Copy link
Collaborator Author

tswast commented Mar 30, 2023

Marking as duplicate of #63

@tswast tswast closed this as completed Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-db-dtypes-pandas API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

1 participant