Fix flaky jit regression test

Disable hash aggregate to avoid flaky test output.
This commit is contained in:
Fabrízio de Royes Mello 2024-12-02 12:24:05 -03:00
parent 089a8304a5
commit c6ad9a6be2
2 changed files with 13 additions and 8 deletions

View File

@ -17,6 +17,7 @@ SET jit_above_cost=0;
SET jit_inline_above_cost=0; SET jit_inline_above_cost=0;
SET jit_optimize_above_cost=0; SET jit_optimize_above_cost=0;
SET jit_tuple_deforming=on; SET jit_tuple_deforming=on;
SET enable_hashagg=off;
\ir :TEST_LOAD_NAME \ir :TEST_LOAD_NAME
-- This file and its contents are licensed under the Timescale License. -- This file and its contents are licensed under the Timescale License.
-- Please see the included NOTICE for copyright information and -- Please see the included NOTICE for copyright information and
@ -198,16 +199,19 @@ SELECT * FROM jit_device_summary WHERE metric_spread = 1800 ORDER BY bucket DESC
Output: _hyper_4_6_chunk.bucket, _hyper_4_6_chunk.device_id, _hyper_4_6_chunk.metric_avg, _hyper_4_6_chunk.metric_spread Output: _hyper_4_6_chunk.bucket, _hyper_4_6_chunk.device_id, _hyper_4_6_chunk.metric_avg, _hyper_4_6_chunk.metric_spread
Index Cond: (_hyper_4_6_chunk.bucket < 'Mon Dec 31 01:00:00 2018 PST'::timestamp with time zone) Index Cond: (_hyper_4_6_chunk.bucket < 'Mon Dec 31 01:00:00 2018 PST'::timestamp with time zone)
Filter: (_hyper_4_6_chunk.metric_spread = '1800'::double precision) Filter: (_hyper_4_6_chunk.metric_spread = '1800'::double precision)
-> HashAggregate -> GroupAggregate
Output: (time_bucket('@ 1 hour'::interval, _hyper_3_5_chunk.observation_time)), _hyper_3_5_chunk.device_id, avg(_hyper_3_5_chunk.metric), (max(_hyper_3_5_chunk.metric) - min(_hyper_3_5_chunk.metric)) Output: (time_bucket('@ 1 hour'::interval, _hyper_3_5_chunk.observation_time)), _hyper_3_5_chunk.device_id, avg(_hyper_3_5_chunk.metric), (max(_hyper_3_5_chunk.metric) - min(_hyper_3_5_chunk.metric))
Group Key: time_bucket('@ 1 hour'::interval, _hyper_3_5_chunk.observation_time), _hyper_3_5_chunk.device_id Group Key: (time_bucket('@ 1 hour'::interval, _hyper_3_5_chunk.observation_time)), _hyper_3_5_chunk.device_id
Filter: ((max(_hyper_3_5_chunk.metric) - min(_hyper_3_5_chunk.metric)) = '1800'::double precision) Filter: ((max(_hyper_3_5_chunk.metric) - min(_hyper_3_5_chunk.metric)) = '1800'::double precision)
-> Result -> Sort
Output: time_bucket('@ 1 hour'::interval, _hyper_3_5_chunk.observation_time), _hyper_3_5_chunk.device_id, _hyper_3_5_chunk.metric Output: (time_bucket('@ 1 hour'::interval, _hyper_3_5_chunk.observation_time)), _hyper_3_5_chunk.device_id, _hyper_3_5_chunk.metric
-> Index Scan using _hyper_3_5_chunk_jit_test_contagg_observation_time_idx on _timescaledb_internal._hyper_3_5_chunk Sort Key: (time_bucket('@ 1 hour'::interval, _hyper_3_5_chunk.observation_time)), _hyper_3_5_chunk.device_id
Output: _hyper_3_5_chunk.observation_time, _hyper_3_5_chunk.device_id, _hyper_3_5_chunk.metric -> Result
Index Cond: (_hyper_3_5_chunk.observation_time >= 'Mon Dec 31 01:00:00 2018 PST'::timestamp with time zone) Output: time_bucket('@ 1 hour'::interval, _hyper_3_5_chunk.observation_time), _hyper_3_5_chunk.device_id, _hyper_3_5_chunk.metric
(19 rows) -> Index Scan using _hyper_3_5_chunk_jit_test_contagg_observation_time_idx on _timescaledb_internal._hyper_3_5_chunk
Output: _hyper_3_5_chunk.observation_time, _hyper_3_5_chunk.device_id, _hyper_3_5_chunk.metric
Index Cond: (_hyper_3_5_chunk.observation_time >= 'Mon Dec 31 01:00:00 2018 PST'::timestamp with time zone)
(22 rows)
-- generate the results into two different files -- generate the results into two different files
\set ECHO errors \set ECHO errors

View File

@ -20,6 +20,7 @@ SET jit_above_cost=0;
SET jit_inline_above_cost=0; SET jit_inline_above_cost=0;
SET jit_optimize_above_cost=0; SET jit_optimize_above_cost=0;
SET jit_tuple_deforming=on; SET jit_tuple_deforming=on;
SET enable_hashagg=off;
\ir :TEST_LOAD_NAME \ir :TEST_LOAD_NAME
\set PREFIX 'EXPLAIN (VERBOSE, TIMING OFF, COSTS OFF, SUMMARY OFF)' \set PREFIX 'EXPLAIN (VERBOSE, TIMING OFF, COSTS OFF, SUMMARY OFF)'