xhochy commented on issue #46738: URL: https://github.com/apache/arrow/issues/46738#issuecomment-3404908463
The relevant section in the standard should be https://github.com/apache/arrow/blob/7b8e3e88f6e87437e821ccf15c3ff6f60a8d0ae1/format/Schema.fbs#L277. From reading that, I would infer that `print(pc.strftime(arr.cast(pa.date32()), '%Y-%m-%d'))` is correct, i.e. the local timezone should be used. But, looking at https://github.com/apache/arrow/blob/7b8e3e88f6e87437e821ccf15c3ff6f60a8d0ae1/format/Schema.fbs#L327, it also seems that the `timestamp` case is correct. This seems quite counterintuitive to me, but the cast here seems to work as a "reinterpret" instead of actually updating the underlying values. -- 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]
