jorisvandenbossche commented on PR #35656:
URL: https://github.com/apache/arrow/pull/35656#issuecomment-1592881853
The test build with pandas nightly has one related failure:
```
=================================== FAILURES
===================================
_____ TestConvertDateTimeLikeTypes.test_timestamp_to_pandas_out_of_bounds
______
self = <pyarrow.tests.test_pandas.TestConvertDateTimeLikeTypes object at
0x7f022e57aee0>
def test_timestamp_to_pandas_out_of_bounds(self):
# ARROW-7758 check for out of bounds timestamps for non-ns timestamps
# that end up getting coerced into ns timestamps.
for unit in ['s', 'ms', 'us']:
for tz in [None, 'America/New_York']:
arr = pa.array([datetime(1, 1, 1)], pa.timestamp(unit,
tz=tz))
table = pa.table({'a': arr})
msg = "would result in out of bounds timestamp"
with pytest.raises(ValueError, match=msg):
print(arr.to_pandas(coerce_temporal_nanoseconds=True))
with pytest.raises(ValueError, match=msg):
table.to_pandas(coerce_temporal_nanoseconds=True)
> with pytest.raises(ValueError, match=msg):
E Failed: DID NOT RAISE <class 'ValueError'>
opt/conda/envs/arrow/lib/python3.10/site-packages/pyarrow/tests/test_pandas.py:1495:
Failed
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]