From ea3e64d27ca3294d7f1f929e0891c02dad604309 Mon Sep 17 00:00:00 2001 From: KrJin <33444112+jincong8973@users.noreply.github.com> Date: Mon, 29 Jul 2024 16:24:56 +0800 Subject: [PATCH] fix DUPLICATE_COLUMN error log #67345 --- src/Interpreters/InterpreterInsertQuery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Interpreters/InterpreterInsertQuery.cpp b/src/Interpreters/InterpreterInsertQuery.cpp index 3906cef19955..f55d2c1724ec 100644 --- a/src/Interpreters/InterpreterInsertQuery.cpp +++ b/src/Interpreters/InterpreterInsertQuery.cpp @@ -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))