Make it work without the new analyzer

This commit is contained in:
Christoph Wurm 2024-11-08 09:47:23 +00:00
parent 55e65c7e14
commit 2d70dd11d2

View File

@ -1387,9 +1387,17 @@ void MutationsInterpreter::validate()
}
}
// Make sure the mutation query is valid
if (context->getSettingsRef()[Setting::validate_mutation_query])
// Make sure the mutation query is valid
prepareQueryAffectedQueryTree(commands, source.getStorage(), context);
{
if (context->getSettingsRef()[Setting::allow_experimental_analyzer])
prepareQueryAffectedQueryTree(commands, source.getStorage(), context);
else
{
ASTPtr select_query = prepareQueryAffectedAST(commands, source.getStorage(), context);
InterpreterSelectQuery(select_query, context, source.getStorage(), metadata_snapshot);
}
}
QueryPlan plan;