mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Update key
This commit is contained in:
parent
4c2e0561f5
commit
936cc9d573
@ -313,6 +313,9 @@ void AlterCommand::apply(StorageInMemoryMetadata & metadata, const Context & con
|
||||
column.default_desc.expression = default_expression;
|
||||
}
|
||||
});
|
||||
|
||||
if (metadata.sorting_key.sample_block.has(column_name))
|
||||
metadata.sorting_key = KeyDescription::getKeyFromAST(metadata.sorting_key.definition_ast, metadata.columns, context);
|
||||
}
|
||||
else if (type == MODIFY_ORDER_BY)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user