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

Use np.int64 type for day to nanosecond conversion (NEP50) #922

Merged
merged 2 commits into from
May 8, 2024

Conversation

bnavigator
Copy link

@bnavigator bnavigator commented May 3, 2024

Fixes #921.
Fixes #923 (after release)

Required due to a change in numpy's type promotion with numpy >= 2:
https://numpy.org/devdocs/numpy_2_0_migration_guide.html#changes-to-numpy-data-type-promotion
NEP 50 -- Promotion rules for Python scalars

The DAYS_TO_MILLIS constant actually contained the number of nanoseconds in a day, so I renamed it. I hope this is not incorrectly used outside of fastparquet. At least it is not part of the API documentation.

@martindurant
Copy link
Member

Looks like its time to ditch the dask CI run, since they have deprecated fastparquet as an engine and apparently broken a load of stuff.

@martindurant
Copy link
Member

Thanks for fixing this, by the way :).

@martindurant martindurant merged commit bb00f37 into dask:main May 8, 2024
20 checks passed
@jakirkham jakirkham mentioned this pull request May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fastparquet raises on import with numpy 2.0 rc Numpy 2: OverflowError with int96
2 participants