From 6792f72c6bfd0906c30d7ac0977b7ba2298712d8 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Fri, 19 Jan 2024 06:26:11 +0100 Subject: [PATCH] Better error message about tuples --- src/DataTypes/DataTypeTuple.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DataTypes/DataTypeTuple.cpp b/src/DataTypes/DataTypeTuple.cpp index 9cce59b0dca..f5d1ea5d877 100644 --- a/src/DataTypes/DataTypeTuple.cpp +++ b/src/DataTypes/DataTypeTuple.cpp @@ -56,7 +56,7 @@ static std::optional checkTupleNames(const Strings & names) return Exception(ErrorCodes::BAD_ARGUMENTS, "Names of tuple elements cannot be empty"); if (!names_set.insert(name).second) - return Exception(ErrorCodes::DUPLICATE_COLUMN, "Names of tuple elements must be unique"); + return Exception(ErrorCodes::DUPLICATE_COLUMN, "Names of tuple elements must be unique. Duplicate name: {}", name); } return {};