diff --git a/src/Interpreters/InterpreterSelectQuery.cpp b/src/Interpreters/InterpreterSelectQuery.cpp index 0d03118822e..65c5a77a46c 100644 --- a/src/Interpreters/InterpreterSelectQuery.cpp +++ b/src/Interpreters/InterpreterSelectQuery.cpp @@ -1258,7 +1258,7 @@ void InterpreterSelectQuery::executeFetchColumns( ErrorCodes::TOO_MANY_COLUMNS); /// General limit for the number of threads. - pipeline.setMaxThreads(settings.max_threads); + query_plan.setMaxThreads(settings.max_threads); /** With distributed query processing, almost no computations are done in the threads, * but wait and receive data from remote servers.