Skip to content

Commit 8a6e98d

Browse files
Add test case for new casting feature (#15609)
1 parent 4ccd455 commit 8a6e98d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

datafusion/sqllogictest/test_files/timestamps.slt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2842,6 +2842,11 @@ select to_char(arrow_cast(TIMESTAMP '2023-08-03 14:38:50Z', 'Timestamp(Second, N
28422842
----
28432843
03-08-2023 14-38-50
28442844

2845+
query T
2846+
select to_char(arrow_cast('2023-09-04'::date, 'Timestamp(Second, Some("UTC"))'), '%Y-%m-%dT%H:%M:%S%.3f');
2847+
----
2848+
2023-09-04T00:00:00.000
2849+
28452850
query T
28462851
select to_char(arrow_cast(123456, 'Duration(Second)'), 'pretty');
28472852
----

0 commit comments

Comments
 (0)