Skip to content

Apache DataFusion SQL Query Engine

Add test case for new casting feature (#15609)

Matthew Kim8a6e98d4f077
diff --git a/datafusion/sqllogictest/test_files/timestamps.slt b/datafusion/sqllogictest/test_files/timestamps.slt
index 16168eeae4..44d0f1f97d 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');
----