Skip to content

Commit

Permalink
reference REL_17_0-80-gb7467ab71c cagg_union_view-* continuous_aggs-*…
Browse files Browse the repository at this point in the history
… transparent_decompression-*
  • Loading branch information
akuzm committed Dec 5, 2024
1 parent d786a65 commit 12e5dd4
Showing 1 changed file with 24 additions and 26 deletions.
50 changes: 24 additions & 26 deletions tsl/test/expected/continuous_aggs-17.out
Original file line number Diff line number Diff line change
Expand Up @@ -2035,8 +2035,8 @@ SELECT * FROM mat_m1;

-- Merge Append
EXPLAIN (COSTS OFF) SELECT * FROM mat_m1;
QUERY PLAN
-------------------------------------------------------------------------------------------------------------------------------
QUERY PLAN
------------------------------------------------------------------------------------------------------------------------------
Merge Append
Sort Key: _hyper_59_123_chunk.sum DESC
-> Merge Append
Expand All @@ -2049,18 +2049,17 @@ EXPLAIN (COSTS OFF) SELECT * FROM mat_m1;
Sort Key: (sum(_hyper_52_111_chunk.temperature)) DESC
-> Finalize GroupAggregate
Group Key: (time_bucket('@ 7 days'::interval, _hyper_52_111_chunk.timec))
-> Sort
-> Merge Append
Sort Key: (time_bucket('@ 7 days'::interval, _hyper_52_111_chunk.timec))
-> Append
-> Partial GroupAggregate
Group Key: time_bucket('@ 7 days'::interval, _hyper_52_111_chunk.timec)
-> Index Scan Backward using _hyper_52_111_chunk_conditions_timec_idx on _hyper_52_111_chunk
Index Cond: (timec >= 'Sun Nov 04 16:00:00 2018 PST'::timestamp with time zone)
-> Partial GroupAggregate
Group Key: time_bucket('@ 7 days'::interval, _hyper_52_125_chunk.timec)
-> Index Scan Backward using _hyper_52_125_chunk_conditions_timec_idx on _hyper_52_125_chunk
Index Cond: (timec >= 'Sun Nov 04 16:00:00 2018 PST'::timestamp with time zone)
(23 rows)
-> Partial GroupAggregate
Group Key: time_bucket('@ 7 days'::interval, _hyper_52_111_chunk.timec)
-> Index Scan Backward using _hyper_52_111_chunk_conditions_timec_idx on _hyper_52_111_chunk
Index Cond: (timec >= 'Sun Nov 04 16:00:00 2018 PST'::timestamp with time zone)
-> Partial GroupAggregate
Group Key: time_bucket('@ 7 days'::interval, _hyper_52_125_chunk.timec)
-> Index Scan Backward using _hyper_52_125_chunk_conditions_timec_idx on _hyper_52_125_chunk
Index Cond: (timec >= 'Sun Nov 04 16:00:00 2018 PST'::timestamp with time zone)
(22 rows)

-- Ordering by another column
SELECT * FROM mat_m1 ORDER BY count;
Expand All @@ -2073,8 +2072,8 @@ SELECT * FROM mat_m1 ORDER BY count;
(4 rows)

EXPLAIN (COSTS OFF) SELECT * FROM mat_m1 ORDER BY count;
QUERY PLAN
-------------------------------------------------------------------------------------------------------------------------------------
QUERY PLAN
------------------------------------------------------------------------------------------------------------------------------------
Sort
Sort Key: _hyper_59_123_chunk.count
-> Merge Append
Expand All @@ -2089,18 +2088,17 @@ EXPLAIN (COSTS OFF) SELECT * FROM mat_m1 ORDER BY count;
Sort Key: (sum(_hyper_52_111_chunk.temperature)) DESC
-> Finalize GroupAggregate
Group Key: (time_bucket('@ 7 days'::interval, _hyper_52_111_chunk.timec))
-> Sort
-> Merge Append
Sort Key: (time_bucket('@ 7 days'::interval, _hyper_52_111_chunk.timec))
-> Append
-> Partial GroupAggregate
Group Key: time_bucket('@ 7 days'::interval, _hyper_52_111_chunk.timec)
-> Index Scan Backward using _hyper_52_111_chunk_conditions_timec_idx on _hyper_52_111_chunk
Index Cond: (timec >= 'Sun Nov 04 16:00:00 2018 PST'::timestamp with time zone)
-> Partial GroupAggregate
Group Key: time_bucket('@ 7 days'::interval, _hyper_52_125_chunk.timec)
-> Index Scan Backward using _hyper_52_125_chunk_conditions_timec_idx on _hyper_52_125_chunk
Index Cond: (timec >= 'Sun Nov 04 16:00:00 2018 PST'::timestamp with time zone)
(25 rows)
-> Partial GroupAggregate
Group Key: time_bucket('@ 7 days'::interval, _hyper_52_111_chunk.timec)
-> Index Scan Backward using _hyper_52_111_chunk_conditions_timec_idx on _hyper_52_111_chunk
Index Cond: (timec >= 'Sun Nov 04 16:00:00 2018 PST'::timestamp with time zone)
-> Partial GroupAggregate
Group Key: time_bucket('@ 7 days'::interval, _hyper_52_125_chunk.timec)
-> Index Scan Backward using _hyper_52_125_chunk_conditions_timec_idx on _hyper_52_125_chunk
Index Cond: (timec >= 'Sun Nov 04 16:00:00 2018 PST'::timestamp with time zone)
(24 rows)

-- Change the type of cagg
ALTER MATERIALIZED VIEW mat_m1 SET (timescaledb.materialized_only=true);
Expand Down

0 comments on commit 12e5dd4

Please sign in to comment.