ClickHouse/tests/queries/0_stateless/02343_aggregation_pipeline.reference

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

149 lines
5.4 KiB
Plaintext
Raw Normal View History

-- { echoOn }
2024-07-24 07:57:56 +00:00
explain pipeline select * from (select * from numbers(1e8) group by number) group by number settings max_rows_to_read = 0;
2022-07-13 10:36:04 +00:00
(Expression)
ExpressionTransform × 16
(Aggregating)
Resize 16 → 16
AggregatingTransform × 16
StrictResize 16 → 16
(Expression)
ExpressionTransform × 16
(Aggregating)
Resize 1 → 16
AggregatingTransform
(Expression)
ExpressionTransform
(ReadFromSystemNumbers)
NumbersRange 0 → 1
2024-07-24 07:57:56 +00:00
explain pipeline select * from (select * from numbers_mt(1e8) group by number) group by number settings max_rows_to_read = 0;
(Expression)
ExpressionTransform × 16
(Aggregating)
Resize 16 → 16
AggregatingTransform × 16
StrictResize 16 → 16
(Expression)
ExpressionTransform × 16
(Aggregating)
Resize 16 → 16
AggregatingTransform × 16
(Expression)
ExpressionTransform × 16
(ReadFromSystemNumbers)
NumbersRange × 16 0 → 1
2024-07-24 07:57:56 +00:00
explain pipeline select * from (select * from numbers_mt(1e8) group by number) order by number settings max_rows_to_read = 0;
(Expression)
ExpressionTransform
(Sorting)
MergingSortedTransform 16 → 1
MergeSortingTransform × 16
LimitsCheckingTransform × 16
PartialSortingTransform × 16
(Expression)
ExpressionTransform × 16
(Aggregating)
Resize 16 → 16
AggregatingTransform × 16
(Expression)
ExpressionTransform × 16
(ReadFromSystemNumbers)
NumbersRange × 16 0 → 1
explain pipeline select number from remote('127.0.0.{1,2,3}', system, numbers_mt) group by number settings distributed_aggregation_memory_efficient = 1;
(Expression)
ExpressionTransform × 16
(MergingAggregated)
Resize 1 → 16
SortingAggregatedTransform 16 → 1
MergingAggregatedBucketTransform × 16
Resize 1 → 16
GroupingAggregatedTransform 3 → 1
(Union)
(Aggregating)
Resize 16 → 1
AggregatingTransform × 16
(Expression)
ExpressionTransform × 16
(ReadFromSystemNumbers)
NumbersRange × 16 0 → 1
(ReadFromRemote)
explain pipeline select number from remote('127.0.0.{1,2,3}', system, numbers_mt) group by number settings distributed_aggregation_memory_efficient = 0;
(Expression)
ExpressionTransform × 16
(MergingAggregated)
Resize 1 → 16
MergingAggregatedTransform
Resize 18 → 1
(Union)
(Aggregating)
Resize 16 → 16
AggregatingTransform × 16
(Expression)
ExpressionTransform × 16
(ReadFromSystemNumbers)
NumbersRange × 16 0 → 1
(ReadFromRemote)
-- { echoOn }
explain pipeline SELECT k1, k3, sum(value) v FROM remote('127.0.0.{1,2}', currentDatabase(), proj_agg_02343) GROUP BY k1, k3 SETTINGS distributed_aggregation_memory_efficient = 0;
(Expression)
ExpressionTransform × 16
(MergingAggregated)
Resize 1 → 16
MergingAggregatedTransform
2023-02-20 17:55:10 +00:00
Resize 17 → 1
(Union)
2023-02-20 17:55:10 +00:00
(Aggregating)
Resize 1 → 16
AggregatingTransform
(Expression)
ExpressionTransform
(ReadFromMergeTree)
MergeTreeSelect(pool: ReadPoolInOrder, algorithm: InOrder) 0 → 1
(ReadFromRemote)
explain pipeline SELECT k1, k3, sum(value) v FROM remote('127.0.0.{1,2}', currentDatabase(), proj_agg_02343) GROUP BY k1, k3 SETTINGS distributed_aggregation_memory_efficient = 1;
(Expression)
ExpressionTransform × 16
(MergingAggregated)
Resize 1 → 16
SortingAggregatedTransform 16 → 1
MergingAggregatedBucketTransform × 16
Resize 1 → 16
GroupingAggregatedTransform 2 → 1
(Union)
2023-02-20 17:55:10 +00:00
(Aggregating)
AggregatingTransform
2023-02-20 17:55:10 +00:00
(Expression)
ExpressionTransform
2023-02-20 17:55:10 +00:00
(ReadFromMergeTree)
MergeTreeSelect(pool: ReadPoolInOrder, algorithm: InOrder) 0 → 1
(ReadFromRemote)
-- { echoOn }
explain pipeline select a from remote('127.0.0.{1,2}', currentDatabase(), dist_t) group by a settings max_threads = 2, distributed_aggregation_memory_efficient = 1;
(Expression)
ExpressionTransform × 2
(MergingAggregated)
Resize 1 → 2
SortingAggregatedTransform 2 → 1
MergingAggregatedBucketTransform × 2
Resize 1 → 2
GroupingAggregatedTransform 2 → 1
(Union)
(MergingAggregated)
SortingAggregatedTransform 2 → 1
MergingAggregatedBucketTransform × 2
Resize 1 → 2
GroupingAggregatedTransform 2 → 1
(Union)
(Aggregating)
Resize 2 → 1
AggregatingTransform × 2
StrictResize 2 → 2
(Expression)
ExpressionTransform × 2
(ReadFromMergeTree)
MergeTreeSelect(pool: ReadPool, algorithm: Thread) × 2 0 → 1
(ReadFromRemote)
(ReadFromRemote)