Skip to content

Commit

Permalink
Add tests from apache#13372
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Dec 11, 2024
1 parent eb5b611 commit 5c8de1f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions datafusion/sqllogictest/test_files/expr/date_part.slt
Original file line number Diff line number Diff line change
Expand Up @@ -712,11 +712,21 @@ select extract(second from '2024-08-09T12:13:14')
----
14

query I
select extract(second from timestamp '2024-08-09T12:13:14')
----
14

query I
select extract(seconds from '2024-08-09T12:13:14')
----
14

query I
select extract(seconds from timestamp '2024-08-09T12:13:14')
----
14

query I
SELECT extract(second from arrow_cast('23:32:50.123456789'::time, 'Time64(Nanosecond)'))
----
Expand Down Expand Up @@ -1060,3 +1070,5 @@ true

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


0 comments on commit 5c8de1f

Please sign in to comment.