dask / fastparquet

python implementation of the parquet columnar file format.
Apache License 2.0
787 stars 178 forks source link

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

Closed bnavigator closed 6 months ago

bnavigator commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

Thanks for fixing this, by the way :).