mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Merge pull request #24116 from hexiaoting/dev_explain
Fix bug for explain pipeline
This commit is contained in:
commit
e785029ead
@ -834,7 +834,7 @@ void Pipe::transform(const Transformer & transformer)
|
||||
|
||||
if (collected_processors)
|
||||
{
|
||||
for (const auto & processor : processors)
|
||||
for (const auto & processor : new_processors)
|
||||
collected_processors->emplace_back(processor);
|
||||
}
|
||||
|
||||
|
31
tests/queries/0_stateless/01861_explain_pipeline.reference
Normal file
31
tests/queries/0_stateless/01861_explain_pipeline.reference
Normal file
@ -0,0 +1,31 @@
|
||||
(Expression)
|
||||
ExpressionTransform
|
||||
(SettingQuotaAndLimits)
|
||||
(Expression)
|
||||
ExpressionTransform
|
||||
(MergingFinal)
|
||||
ReplacingSorted 2 → 1
|
||||
(Expression)
|
||||
ExpressionTransform × 2
|
||||
(ReadFromMergeTree)
|
||||
MergeTree × 2 0 → 1
|
||||
0 0
|
||||
1 1
|
||||
2 2
|
||||
3 3
|
||||
4 4
|
||||
5 5
|
||||
6 6
|
||||
(Expression)
|
||||
ExpressionTransform × 2
|
||||
(SettingQuotaAndLimits)
|
||||
(Expression)
|
||||
ExpressionTransform × 2
|
||||
(MergingFinal)
|
||||
ReplacingSorted × 2 2 → 1
|
||||
Copy × 2 1 → 2
|
||||
AddingSelector × 2
|
||||
(Expression)
|
||||
ExpressionTransform × 2
|
||||
(ReadFromMergeTree)
|
||||
MergeTree × 2 0 → 1
|
10
tests/queries/0_stateless/01861_explain_pipeline.sql
Normal file
10
tests/queries/0_stateless/01861_explain_pipeline.sql
Normal file
@ -0,0 +1,10 @@
|
||||
DROP TABLE IF EXISTS test;
|
||||
CREATE TABLE test(a Int, b Int) Engine=ReplacingMergeTree order by a;
|
||||
INSERT INTO test select number, number from numbers(5);
|
||||
INSERT INTO test select number, number from numbers(5,2);
|
||||
set max_threads =1;
|
||||
explain pipeline select * from test final;
|
||||
select * from test final;
|
||||
set max_threads =2;
|
||||
explain pipeline select * from test final;
|
||||
DROP TABLE test;
|
Loading…
Reference in New Issue
Block a user