2. Draw the rest of that owl.

This commit is contained in:
Vladimir Chebotarev 2021-07-31 22:36:43 +03:00
parent ce0850007f
commit 428657b14f

View File

@ -545,7 +545,14 @@ ASTPtr MutationsInterpreter::prepare(bool dry_run)
}
else if (command.type == MutationCommand::MATERIALIZE_COLUMN)
{
/// FIXME
mutation_kind.set(MutationKind::MUTATE_OTHER);
if (stages.empty() || !stages.back().column_to_updated.empty())
stages.emplace_back(context);
if (stages.size() == 1) /// First stage only supports filtering and can't update columns.
stages.emplace_back(context);
const auto & column = columns_desc.get(command.column_name);
stages.back().column_to_updated.emplace(column.name, column.default_desc.expression->clone());
}
else if (command.type == MutationCommand::MATERIALIZE_INDEX)
{