From 9c6408df2508886d11c8e3e530e746599e6691b7 Mon Sep 17 00:00:00 2001 From: Matthew Kim <38759997+friendlymatthew@users.noreply.github.com> Date: Sun, 6 Apr 2025 18:13:59 -0400 Subject: [PATCH] Add test case for new casting feature --- datafusion/sqllogictest/test_files/timestamps.slt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/datafusion/sqllogictest/test_files/timestamps.slt b/datafusion/sqllogictest/test_files/timestamps.slt index 16168eeae4a1..44d0f1f97d4d 100644 --- a/datafusion/sqllogictest/test_files/timestamps.slt +++ b/datafusion/sqllogictest/test_files/timestamps.slt @@ -2842,6 +2842,11 @@ select to_char(arrow_cast(TIMESTAMP '2023-08-03 14:38:50Z', 'Timestamp(Second, N ---- 03-08-2023 14-38-50 +query T +select to_char(arrow_cast('2023-09-04'::date, 'Timestamp(Second, Some("UTC"))'), '%Y-%m-%dT%H:%M:%S%.3f'); +---- +2023-09-04T00:00:00.000 + query T select to_char(arrow_cast(123456, 'Duration(Second)'), 'pretty'); ----