mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
Merge 64525044fb
into b94a7167a8
This commit is contained in:
commit
c45ba15ab7
@ -1488,6 +1488,11 @@ void AlterCommands::validate(const StoragePtr & table, ContextPtr context) const
|
||||
ErrorCodes::BAD_ARGUMENTS,
|
||||
"Column {} doesn't have COMMENT, cannot remove it",
|
||||
backQuote(column_name));
|
||||
if (command.to_remove == AlterCommand::RemoveProperty::SETTINGS && column_from_table.settings.empty())
|
||||
throw Exception(
|
||||
ErrorCodes::BAD_ARGUMENTS,
|
||||
"Column {} doesn't have SETTINGS, cannot remove it",
|
||||
backQuote(column_name));
|
||||
}
|
||||
|
||||
modified_columns.emplace(column_name);
|
||||
|
@ -71,3 +71,8 @@ CREATE TABLE tab
|
||||
ENGINE = MergeTree
|
||||
ORDER BY id
|
||||
SETTINGS min_bytes_for_wide_part = 1; -- {serverError UNKNOWN_SETTING}
|
||||
|
||||
-- https://github.com/ClickHouse/ClickHouse/issues/69634
|
||||
CREATE TABLE t0 (c0 Int8) ENGINE = CollapsingMergeTree(c0) ORDER BY tuple();
|
||||
ALTER TABLE t0 MODIFY COLUMN c0 REMOVE SETTINGS; -- {serverError BAD_ARGUMENTS}
|
||||
DROP TABLE t0;
|
||||
|
Loading…
Reference in New Issue
Block a user