ClickHouse/tests/queries/0_stateless/01861_explain_pipeline.sql
Duc Canh Le b42c5efc73 use_skipping_final -> enable_vertical_final
Signed-off-by: Duc Canh Le <duccanh.le@ahrefs.com>
2024-01-11 03:38:32 +00:00

11 lines
518 B
SQL

DROP TABLE IF EXISTS test;
CREATE TABLE test(a Int, b Int) Engine=ReplacingMergeTree order by a SETTINGS index_granularity = 8192, index_granularity_bytes = '10Mi';
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 SETTINGS enable_vertical_final = 0;
select * from test final;
set max_threads =2;
explain pipeline select * from test final SETTINGS enable_vertical_final = 0;
DROP TABLE test;