mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
dbms: Better exception message [#METR-18306].
This commit is contained in:
parent
cbe8f384ce
commit
382d73270b
@ -456,9 +456,9 @@ void ExpressionActions::checkLimits(Block & block) const
|
||||
std::stringstream list_of_non_const_columns;
|
||||
for (size_t i = 0, size = block.columns(); i < size; ++i)
|
||||
if (!block.getByPosition(i).column->isConst())
|
||||
list_of_non_const_columns << (i == 0 ? "" : ", ") << block.getByPosition(i).name;
|
||||
list_of_non_const_columns << "\n" << block.getByPosition(i).name;
|
||||
|
||||
throw Exception("Too many temporary non-const columns: " + list_of_non_const_columns.str()
|
||||
throw Exception("Too many temporary non-const columns:" + list_of_non_const_columns.str()
|
||||
+ ". Maximum: " + toString(limits.max_temporary_non_const_columns),
|
||||
ErrorCodes::TOO_MUCH_TEMPORARY_NON_CONST_COLUMNS);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user