Skip to content

Commit

Permalink
TST: fix parquet test_pandas_timestamp_overflow_pyarrow test (#8733)
Browse files Browse the repository at this point in the history
This test started failing on arrow master (noticed thanks to our nightly builds testing dask). The reason for the failure is that we started using the `types_mapper` keyword in ``pa.Array.to_pandas`` (previously this was ignored for arrays), but in this test it is passed a wrong values (it should be a callable, not a dict).
  • Loading branch information
jorisvandenbossche committed Feb 22, 2022
1 parent 64d801f commit abd145e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dask/dataframe/io/tests/test_parquet.py
Expand Up @@ -3072,9 +3072,7 @@ def clamp_arrow_datetimes(cls, arrow_table: pa.Table) -> pa.Table:

original_type = col.type

series: pd.Series = col.cast(pa.int64()).to_pandas(
types_mapper={pa.int64(): pd.Int64Dtype}
)
series: pd.Series = col.cast(pa.int64()).to_pandas()
info = np.iinfo(np.dtype("int64"))
# constrain data to be within valid ranges
series.clip(
Expand Down

0 comments on commit abd145e

Please sign in to comment.