Skip to content

Commit

Permalink
fxi ci
Browse files Browse the repository at this point in the history
  • Loading branch information
xxhZs committed Dec 26, 2024
1 parent 8905c90 commit 26d9664
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions e2e_test/batch/types/timestamp_ns.slt.part
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ select * from t1;
2 2012-01-01 01:01:01.123456
3 0001-01-01 01:01:01.123456789 BC
4 2213-01-01 01:01:01.123456789
5 null
5 NULL

query T
select * from t1 where v1 is null;
----
5 null
5 NULL

query T rowsort
select v1, v2,
Expand All @@ -34,7 +34,7 @@ from t1;
2 2012-01-01 01:01:01.123456 21st Century
3 0001-01-01 01:01:01.123456789 BC Before 2000
4 2213-01-01 01:01:01.123456789 Future
5 null Future
5 NULL Future

query T rowsort
select v1, v2, coalesce(v2, '1900-01-01 00:00:00') as coalesce_v2 from t1;
Expand All @@ -43,7 +43,7 @@ select v1, v2, coalesce(v2, '1900-01-01 00:00:00') as coalesce_v2 from t1;
2 2012-01-01 01:01:01.123456 2012-01-01 01:01:01.123456
3 0001-01-01 01:01:01.123456789 BC 0001-01-01 01:01:01.123456789 BC
4 2213-01-01 01:01:01.123456789 2213-01-01 01:01:01.123456789
5 null 1900-01-01 00:00:00
5 NULL 1900-01-01 00:00:00

query T
select count(v2) as total_rows from t1;
Expand All @@ -57,7 +57,7 @@ select * from t1 order by v2;
2 2012-01-01 01:01:01.123456
3 0001-01-01 01:01:01.123456789 BC
4 2213-01-01 01:01:01.123456789
5 null
5 NULL

query T rowsort
select * from t1 where v2 >= '2012-01-01 01:01:01.123456';
Expand All @@ -73,7 +73,7 @@ select v1, cast(v2 as date) as date_v2, cast(v2 as timestamp with time zone) as
2 2012-01-01 2012-01-01 01:01:01.123456+00:00
3 0001-01-01 BC 0001-01-01 01:01:01.123456+00:00 BC
4 2213-01-01 2213-01-01 01:01:01.123456+00:00
5 null null
5 NULL NULL

query T rowsort
select v1, date_trunc('day', v2) AS truncated_v2 from t1;
Expand All @@ -82,7 +82,7 @@ select v1, date_trunc('day', v2) AS truncated_v2 from t1;
2 2012-01-01 00:00:00
3 0001-01-01 00:00:00 BC
4 2213-01-01 00:00:00
5 null
5 NULL

query T rowsort
select v1, v2 at time zone 'UTC' as v2_utc from t1;
Expand All @@ -91,7 +91,7 @@ select v1, v2 at time zone 'UTC' as v2_utc from t1;
2 2012-01-01 01:01:01.123456+00:00
3 0001-01-01 01:01:01.123456+00:00 BC
4 2213-01-01 01:01:01.123456+00:00
5 null
5 NULL

query T rowsort
select v1, to_char(v2, 'YYYY-MM-DD HH24:MI:SS.NS') as formatted_v2 from t1;
Expand All @@ -100,7 +100,7 @@ select v1, to_char(v2, 'YYYY-MM-DD HH24:MI:SS.NS') as formatted_v2 from t1;
2 2012-01-01 01:01:01.123456000
3 0001-01-01 01:01:01.123456789 BC
4 2213-01-01 01:01:01.123456789
5 null
5 NULL

query T rowsort
select generate_series('2013-01-01 01:01:01.123456789'::timestamp,'2013-01-01 01:01:05.123456790'::timestamp, '1 s');
Expand Down

0 comments on commit 26d9664

Please sign in to comment.