mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
build error and style error fix
This commit is contained in:
parent
8ffce5e974
commit
ad8eac4929
@ -214,12 +214,12 @@ void ASTColumnsReplaceTransformer::transform(ASTs & nodes) const
|
||||
|
||||
if (is_strict && !replace_map.empty())
|
||||
{
|
||||
String expected_columns = "";
|
||||
for (auto it = replace_map.begin(); it != replace_map.end(); ++it)
|
||||
String expected_columns;
|
||||
for (auto & elem: replace_map)
|
||||
{
|
||||
if (expected_columns != "")
|
||||
if (!expected_columns.empty())
|
||||
expected_columns += ", ";
|
||||
expected_columns += it->first;
|
||||
expected_columns += elem.first;
|
||||
}
|
||||
throw Exception(
|
||||
"Columns transformer REPLACE expects following column(s) : " + expected_columns,
|
||||
|
Loading…
Reference in New Issue
Block a user