Skip to content

Commit 5c8de1f

Browse files
committed
Add tests from apache#13372
1 parent eb5b611 commit 5c8de1f

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

datafusion/sqllogictest/test_files/expr/date_part.slt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,11 +712,21 @@ select extract(second from '2024-08-09T12:13:14')
712712
----
713713
14
714714

715+
query I
716+
select extract(second from timestamp '2024-08-09T12:13:14')
717+
----
718+
14
719+
715720
query I
716721
select extract(seconds from '2024-08-09T12:13:14')
717722
----
718723
14
719724

725+
query I
726+
select extract(seconds from timestamp '2024-08-09T12:13:14')
727+
----
728+
14
729+
720730
query I
721731
SELECT extract(second from arrow_cast('23:32:50.123456789'::time, 'Time64(Nanosecond)'))
722732
----
@@ -1060,3 +1070,5 @@ true
10601070

10611071
query error DataFusion error: Internal error: unit Nanosecond not supported
10621072
SELECT (date_part('nanosecond', now()) = EXTRACT(nanosecond FROM now()))
1073+
1074+

0 commit comments

Comments
 (0)