Skip to content

Commit 3a73197

Browse files
committed
wip
Signed-off-by: Alexander Droste <[email protected]>
1 parent 001c031 commit 3a73197

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

test/sql/timestamp.test

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ CREATE TABLE generated_data_table (
1010
timmestamp_s_col TIMESTAMP_S,
1111
timmestamp_ms_col TIMESTAMP_MS,
1212
timmestamp_us_col TIMESTAMP,
13-
timmestamp_ns_col TIMESTAMP_NS,
1413
);
1514

1615
statement ok
@@ -20,25 +19,22 @@ SELECT
2019
TIMESTAMP_S '2025-01-01 00:00:00' + to_seconds(cast(seq AS INTEGER)) as timmestamp_s_col,
2120
TIMESTAMP_MS '2025-01-01 00:00:00' + to_seconds(cast(seq AS INTEGER)) as timmestamp_ms_col,
2221
TIMESTAMP '2025-01-01 00:00:00' + to_seconds(cast(seq AS INTEGER)) as timmestamp_us_col,
23-
TIMESTAMP_NS '2025-01-01 00:00:00' + to_seconds(cast(seq AS INTEGER)) as timmestamp_ns_col,
2422
FROM generate_series(1, 100) AS t(seq);
2523

2624
statement ok
2725
COPY generated_data_table TO '__TEST_DIR__/timestamp_test.vortex' (FORMAT VORTEX)
2826

2927

3028
# Verify that all timestamp columns have the same type after round trip
31-
query III
29+
query II
3230
SELECT
3331
sum(timmestamp_s_col = timmestamp_ms_col) = count(id),
3432
sum(timmestamp_s_col = timmestamp_us_col) = count(id),
35-
sum(timmestamp_s_col = timmestamp_ns_col) = count(id)
3633
FROM
3734
read_vortex('__TEST_DIR__/timestamp_test.vortex');
3835
----
3936
1
4037
1
41-
1
4238

4339
# Verify that filtering works for ms
4440
query I
@@ -50,14 +46,3 @@ WHERE
5046
timmestamp_ms_col > TIMESTAMP '2025-01-01 00:00:50'
5147
----
5248
50
53-
54-
# Verify that filtering works for ns
55-
query I
56-
SELECT
57-
count(id)
58-
FROM
59-
read_vortex('__TEST_DIR__/timestamp_test.vortex')
60-
WHERE
61-
timmestamp_ns_col > TIMESTAMP '2025-01-01 00:00:50'
62-
----
63-
50

0 commit comments

Comments
 (0)