thisisnic commented on issue #45757:
URL: https://github.com/apache/arrow/issues/45757#issuecomment-7148977763
I used an AI agent to rerun this on the current release, and I've reviewed
the results.
----------------
🤖 :
This still happens on pyarrow 26.0.1 (Linux x86_64) with the reprex above:
`ceil_temporal` raises `Local time does not exist` for the March case, and
`floor_temporal` and `ceil_temporal` raise `Local time is ambiguous` for the
November case.
For units of an hour or less in a zone with a whole-hour offset, rounding in
UTC and converting back avoids the error:
```python
utc = data1.cast(pa.timestamp("us", "UTC"))
pc.ceil_temporal(utc, unit="hour").cast(data1.type)
# 2025-03-09 03:00:00-04:00
```
As noted above, handling these cases is tracked in #30746, so closing this
as a duplicate of that issue.
--
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]