mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-23 18:20:50 +00:00
Merge pull request #31692 from ClickHouse/revert-31679-fixmaterializecolumn
Revert "Fixed null pointer exception in `MATERIALIZE COLUMN`"
This commit is contained in:
commit
1f2087fc7b
@ -569,11 +569,6 @@ ASTPtr MutationsInterpreter::prepare(bool dry_run)
|
|||||||
stages.emplace_back(context);
|
stages.emplace_back(context);
|
||||||
|
|
||||||
const auto & column = columns_desc.get(command.column_name);
|
const auto & column = columns_desc.get(command.column_name);
|
||||||
if (column.default_desc.kind != ColumnDefaultKind::Materialized)
|
|
||||||
{
|
|
||||||
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Column {} could not be materialized", column.name);
|
|
||||||
}
|
|
||||||
|
|
||||||
stages.back().column_to_updated.emplace(column.name, column.default_desc.expression->clone());
|
stages.back().column_to_updated.emplace(column.name, column.default_desc.expression->clone());
|
||||||
}
|
}
|
||||||
else if (command.type == MutationCommand::MATERIALIZE_INDEX)
|
else if (command.type == MutationCommand::MATERIALIZE_INDEX)
|
||||||
|
Loading…
Reference in New Issue
Block a user