Better error message about tuples

This commit is contained in:
Alexey Milovidov 2024-01-19 06:26:11 +01:00
parent dcdbaf9150
commit 6792f72c6b

View File

@ -56,7 +56,7 @@ static std::optional<Exception> 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 {};