This commit is contained in:
Igor Nikonov 2024-06-04 07:26:24 +00:00
parent f8e6614b80
commit 6e5aace682

View File

@ -9,6 +9,12 @@ CREATE TABLE atable
ENGINE = MergeTree
ORDER BY tuple();
-- disable parallelization after window function otherwise
-- generated pipeline contains enormous number of transformers (should be fixed separately)
SET query_plan_enable_multithreading_after_window_functions=0;
-- max_threads is randomized, and can significantly increase number of parallel transformers after window func, so set to small value explicitly
SET max_threads=3;
SELECT DISTINCT
loanx_id,
rating_sp,