friendlymatthew commented on issue #14638: URL: https://github.com/apache/datafusion/issues/14638#issuecomment-2661545885
Datafusion-wise, I tested this feature in [this branch](https://github.com/apache/datafusion/compare/main...friendlymatthew:datafusion:friendlymatthew/cast-date-to-timestamp-tz-patch) and it works as expected: ```bash > select to_char(arrow_cast('2023-09-04'::date, 'Timestamp(Second, Some("UTC"))'), '%Y-%m-%dT%H:%M:%S%.3f'); +--------------------------------------------------------------------------------------------------------------+ | to_char(arrow_cast(Utf8("2023-09-04"),Utf8("Timestamp(Second, Some("UTC"))")),Utf8("%Y-%m-%dT%H:%M:%S%.3f")) | +--------------------------------------------------------------------------------------------------------------+ | 2023-09-04T00:00:00.000 | +--------------------------------------------------------------------------------------------------------------+ 1 row(s) fetched. Elapsed 0.027 seconds. ``` Once https://github.com/apache/arrow-rs/pull/7141 lands, I'll follow up with some test cases in `cast.slt`. -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org