mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 04:12:19 +00:00
dbms: fixed error in exception message [#METR-2944].
This commit is contained in:
parent
fd0cd56609
commit
bd51359819
@ -536,7 +536,7 @@ bool Aggregator::executeOnBlock(Block & block, AggregatedDataVariants & result,
|
|||||||
key_columns[i] = block.getByPosition(keys[i]).column;
|
key_columns[i] = block.getByPosition(keys[i]).column;
|
||||||
|
|
||||||
if (key_columns[i]->isConst())
|
if (key_columns[i]->isConst())
|
||||||
throw Exception("Constants is not allowed as GROUP BY keys"
|
throw Exception("Constants are not allowed as GROUP BY keys"
|
||||||
" (but all of them must be eliminated in ExpressionAnalyzer)", ErrorCodes::ILLEGAL_COLUMN);
|
" (but all of them must be eliminated in ExpressionAnalyzer)", ErrorCodes::ILLEGAL_COLUMN);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -550,7 +550,7 @@ bool Aggregator::executeOnBlock(Block & block, AggregatedDataVariants & result,
|
|||||||
* Поэтому, стобцы-константы не разрешены в качестве аргументов агрегатных функций.
|
* Поэтому, стобцы-константы не разрешены в качестве аргументов агрегатных функций.
|
||||||
*/
|
*/
|
||||||
if (aggregate_columns[i][j]->isConst())
|
if (aggregate_columns[i][j]->isConst())
|
||||||
throw Exception("Constants is not allowed as arguments of aggregate functions", ErrorCodes::ILLEGAL_COLUMN);
|
throw Exception("Constants are not allowed as arguments of aggregate functions", ErrorCodes::ILLEGAL_COLUMN);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user