mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-29 21:20:49 +00:00
dbms: Server: fix [#METR-19266]
This commit is contained in:
parent
abe75277a3
commit
e1099f47cb
@ -2345,7 +2345,12 @@ public:
|
||||
|
||||
void executeImpl(Block & block, const ColumnNumbers & arguments, const size_t result) override
|
||||
{
|
||||
wrapper_function(block, arguments, result);
|
||||
/// drop second argument, pass others
|
||||
ColumnNumbers new_arguments{arguments.front()};
|
||||
if (arguments.size() > 2)
|
||||
new_arguments.insert(std::end(new_arguments), std::next(std::begin(arguments), 2), std::end(arguments));
|
||||
|
||||
wrapper_function(block, new_arguments, result);
|
||||
}
|
||||
|
||||
bool hasInformationAboutMonotonicity() const override
|
||||
|
@ -210,7 +210,7 @@ void AlterCommands::validate(IStorage * table, const Context & context)
|
||||
{
|
||||
if (std::end(columns) != column_it)
|
||||
throw Exception{
|
||||
"Cannot add column " + column_name + ": column with this name already exisits",
|
||||
"Cannot add column " + column_name + ": column with this name already exists",
|
||||
DB::ErrorCodes::ILLEGAL_COLUMN
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user