Skip to content

Commit

Permalink
Merge pull request ClickHouse#67346 from jincong8973/master
Browse files Browse the repository at this point in the history
Improve error message ClickHouse#67345
  • Loading branch information
alexey-milovidov authored Sep 29, 2024
2 parents b2aa78e + fa45ae3 commit 609ff84
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 @@ -217,7 +217,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 609ff84

Please sign in to comment.