Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify ORDER BY clause in flaky test #7581

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tsl/test/expected/hypercore_index_btree.out
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ where c.oid = :'unique_chunk'::regclass;
_hyper_7_19_chunk | hypercore
(1 row)

select _timescaledb_debug.is_compressed_tid(ctid), * from :unique_chunk order by time;
select _timescaledb_debug.is_compressed_tid(ctid), * from :unique_chunk order by time, value;
is_compressed_tid | time | value
-------------------+------------------------------+-------
t | Mon Jan 01 01:00:00 2024 PST | 1
Expand All @@ -1008,11 +1008,11 @@ select compress_chunk(:'unique_chunk');
(1 row)

-- Everything's compressed
select _timescaledb_debug.is_compressed_tid(ctid), * from :unique_chunk order by time;
select _timescaledb_debug.is_compressed_tid(ctid), * from :unique_chunk order by time, value;
is_compressed_tid | time | value
-------------------+------------------------------+-------
t | Mon Jan 01 01:00:00 2024 PST | 3
t | Mon Jan 01 01:00:00 2024 PST | 1
t | Mon Jan 01 01:00:00 2024 PST | 3
t | Mon Jan 01 02:00:00 2024 PST | 2
(3 rows)

Expand Down
4 changes: 2 additions & 2 deletions tsl/test/sql/hypercore_index_btree.sql
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ select c.relname, a.amname from pg_class c
inner join pg_am a ON (c.relam = a.oid)
where c.oid = :'unique_chunk'::regclass;

select _timescaledb_debug.is_compressed_tid(ctid), * from :unique_chunk order by time;
select _timescaledb_debug.is_compressed_tid(ctid), * from :unique_chunk order by time, value;

-- Unique index creation should work but fail on uniqueness check
\set ON_ERROR_STOP 0
Expand All @@ -452,7 +452,7 @@ create unique index time_key on uniquetable (time);
select compress_chunk(:'unique_chunk');

-- Everything's compressed
select _timescaledb_debug.is_compressed_tid(ctid), * from :unique_chunk order by time;
select _timescaledb_debug.is_compressed_tid(ctid), * from :unique_chunk order by time, value;

-- Unique index creation should still fail
\set ON_ERROR_STOP 0
Expand Down
Loading