create interpreter with changed select_query_options

This commit is contained in:
Mikhail Artemenko 2023-11-19 14:28:33 +00:00
parent 20bdec61de
commit b117d8ed12

View File

@ -209,7 +209,7 @@ Block InterpreterSelectQueryAnalyzer::getSampleBlock(const QueryTreeNodePtr & qu
{
auto select_query_options_copy = select_query_options;
select_query_options_copy.only_analyze = true;
InterpreterSelectQueryAnalyzer interpreter(query_tree, context, select_query_options);
InterpreterSelectQueryAnalyzer interpreter(query_tree, context, select_query_options_copy);
return interpreter.getSampleBlock();
}