From bd51359819f6ade46cf5de2e22e1fafc1d2080fc Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 1 Feb 2015 01:17:33 +0300 Subject: [PATCH] dbms: fixed error in exception message [#METR-2944]. --- dbms/src/Interpreters/Aggregator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbms/src/Interpreters/Aggregator.cpp b/dbms/src/Interpreters/Aggregator.cpp index 7e91758f303..22c686c40a8 100644 --- a/dbms/src/Interpreters/Aggregator.cpp +++ b/dbms/src/Interpreters/Aggregator.cpp @@ -536,7 +536,7 @@ bool Aggregator::executeOnBlock(Block & block, AggregatedDataVariants & result, key_columns[i] = block.getByPosition(keys[i]).column; 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); } @@ -550,7 +550,7 @@ bool Aggregator::executeOnBlock(Block & block, AggregatedDataVariants & result, * Поэтому, стобцы-константы не разрешены в качестве аргументов агрегатных функций. */ 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); } }