@@ -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
1615statement 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,
2422FROM generate_series(1, 100) AS t(seq);
2523
2624statement ok
2725COPY 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
3230SELECT
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)
3633FROM
3734 read_vortex('__TEST_DIR__/timestamp_test.vortex');
3835----
39361
40371
41- 1
4238
4339# Verify that filtering works for ms
4440query I
5046 timmestamp_ms_col > TIMESTAMP '2025-01-01 00:00:50'
5147----
524850
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