thisisnic commented on issue #46738: URL: https://github.com/apache/arrow/issues/46738#issuecomment-7142362707
I used an AI agent to run these conversions and check them against the format spec, and I've reviewed the results. ---------------- 🤖 : A wider look at this on pyarrow 26.0.1, with `2020-01-01 00:30` in `Asia/Kathmandu` (`2019-12-31 18:45` UTC). Casting to `date32`, `date64`, `time64` and string all use local time, as do `pc.year`/`pc.day`/`pc.hour` and `pc.local_timestamp`. Casting to a timestamp without a timezone is the only one that keeps the UTC values, giving `2019-12-31 18:45`. On the spec: the passage linked above is about changing one non-empty timezone to another. For dropping the timezone, `format/Schema.fbs` says an unset timezone can't be interpreted as UTC, which is what this cast does in effect. `pc.local_timestamp` gives the local wall-clock values in the meantime. -- 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]
