2024-02-10 03:40:55 +00:00
|
|
|
-- Tags: no-parallel, no-fasttest
|
2023-04-24 12:22:45 +00:00
|
|
|
|
|
|
|
insert into function file(data_02723.csv) select number from numbers(5) settings engine_file_truncate_on_insert=1;
|
2023-04-25 22:12:47 +00:00
|
|
|
|
|
|
|
set max_threads=2;
|
2023-04-24 12:22:45 +00:00
|
|
|
-- { echoOn }
|
2023-04-24 12:43:54 +00:00
|
|
|
set parallelize_output_from_storages=1;
|
|
|
|
select startsWith(trimLeft(explain),'Resize') as resize from (explain pipeline select * from file(data_02723.csv)) where resize;
|
2023-04-24 12:22:45 +00:00
|
|
|
-- no Resize in pipeline
|
2023-04-24 12:43:54 +00:00
|
|
|
set parallelize_output_from_storages=0;
|
|
|
|
select startsWith(trimLeft(explain),'Resize') as resize from (explain pipeline select * from file(data_02723.csv)) where resize;
|
2023-04-24 12:22:45 +00:00
|
|
|
|
2024-02-10 00:27:15 +00:00
|
|
|
-- Data from URL source is immediately resized to max_treads streams, before any ExpressionTransform.
|
|
|
|
set parallelize_output_from_storages=1;
|
|
|
|
select match(arrayStringConcat(groupArray(explain), ''), '.*Resize 1 → 2 *URL 0 → 1 *$') from (explain pipeline select x, count() from url('https://example.com', Parquet, 'x Int64') group by x order by count() limit 10);
|