Skip to content

Commit

Permalink
Fix flaky continuous_aggs test
Browse files Browse the repository at this point in the history
Add missing ORDER BY clause to continuous_aggs test to make output
deterministic.
  • Loading branch information
svenklemm committed Oct 19, 2024
1 parent 2e3cf30 commit 23b736e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tsl/test/expected/continuous_aggs-14.out
Original file line number Diff line number Diff line change
Expand Up @@ -1758,7 +1758,7 @@ group by bucket, symbol;
NOTICE: refreshing continuous aggregate "cagg_index_default"
-- see corresponding materialization_hypertables
select view_name, materialization_hypertable_name from timescaledb_information.continuous_aggregates ca
where view_name like 'cagg_index_%';
where view_name like 'cagg_index_%' ORDER BY view_name;
view_name | materialization_hypertable_name
--------------------+---------------------------------
cagg_index_default | _materialized_hypertable_51
Expand Down
2 changes: 1 addition & 1 deletion tsl/test/expected/continuous_aggs-15.out
Original file line number Diff line number Diff line change
Expand Up @@ -1758,7 +1758,7 @@ group by bucket, symbol;
NOTICE: refreshing continuous aggregate "cagg_index_default"
-- see corresponding materialization_hypertables
select view_name, materialization_hypertable_name from timescaledb_information.continuous_aggregates ca
where view_name like 'cagg_index_%';
where view_name like 'cagg_index_%' ORDER BY view_name;
view_name | materialization_hypertable_name
--------------------+---------------------------------
cagg_index_default | _materialized_hypertable_51
Expand Down
2 changes: 1 addition & 1 deletion tsl/test/expected/continuous_aggs-16.out
Original file line number Diff line number Diff line change
Expand Up @@ -1758,7 +1758,7 @@ group by bucket, symbol;
NOTICE: refreshing continuous aggregate "cagg_index_default"
-- see corresponding materialization_hypertables
select view_name, materialization_hypertable_name from timescaledb_information.continuous_aggregates ca
where view_name like 'cagg_index_%';
where view_name like 'cagg_index_%' ORDER BY view_name;
view_name | materialization_hypertable_name
--------------------+---------------------------------
cagg_index_default | _materialized_hypertable_51
Expand Down
2 changes: 1 addition & 1 deletion tsl/test/expected/continuous_aggs-17.out
Original file line number Diff line number Diff line change
Expand Up @@ -1758,7 +1758,7 @@ group by bucket, symbol;
NOTICE: refreshing continuous aggregate "cagg_index_default"
-- see corresponding materialization_hypertables
select view_name, materialization_hypertable_name from timescaledb_information.continuous_aggregates ca
where view_name like 'cagg_index_%';
where view_name like 'cagg_index_%' ORDER BY view_name;
view_name | materialization_hypertable_name
--------------------+---------------------------------
cagg_index_default | _materialized_hypertable_51
Expand Down
2 changes: 1 addition & 1 deletion tsl/test/sql/continuous_aggs.sql.in
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,7 @@ group by bucket, symbol;

-- see corresponding materialization_hypertables
select view_name, materialization_hypertable_name from timescaledb_information.continuous_aggregates ca
where view_name like 'cagg_index_%';
where view_name like 'cagg_index_%' ORDER BY view_name;

-- now make sure a group index has been created when explicitly asked for
\x on
Expand Down

0 comments on commit 23b736e

Please sign in to comment.