Skip to content

Commit

Permalink
fix DUPLICATE_COLUMN error log ClickHouse#67345
Browse files Browse the repository at this point in the history
  • Loading branch information
jincong8973 authored Jul 29, 2024
1 parent 37210d2 commit ea3e64d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Interpreters/InterpreterInsertQuery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ Block InterpreterInsertQuery::getSampleBlockImpl(
for (const auto & current_name : names)
{
if (res.has(current_name))
throw Exception(ErrorCodes::DUPLICATE_COLUMN, "Column {} specified more than once", current_name);
throw Exception(ErrorCodes::DUPLICATE_COLUMN, "Column {} in table {} specified more than once", current_name, table->getStorageID().getNameForLogs());

/// Column is not ordinary or ephemeral
if (!table_sample_insertable.has(current_name))
Expand Down

0 comments on commit ea3e64d

Please sign in to comment.