This commit is contained in:
Nikolai Kochetov 2018-04-09 20:16:48 +03:00
parent 791a03e776
commit a21ee85368

View File

@ -682,7 +682,7 @@ QueryProcessingStage::Enum InterpreterSelectQuery::executeFetchColumns(Pipeline
optimize_prewhere(*merge_tree);
}
if (query_analyzer->appendPrewhere(chain, false))
if (!dry_run && query_analyzer->appendPrewhere(chain, false))
{
query_info.prewhere_actions = chain.getLastActions();
chain.addStep();