From 150e50865240f01c300811f19586f6749ed6d346 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sat, 15 Dec 2012 04:42:42 +0000 Subject: [PATCH] dbms: fixed error in error message [#CONV-2944]. --- dbms/src/Storages/StorageFactory.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dbms/src/Storages/StorageFactory.cpp b/dbms/src/Storages/StorageFactory.cpp index a45d6d1d80..ff255f0262 100644 --- a/dbms/src/Storages/StorageFactory.cpp +++ b/dbms/src/Storages/StorageFactory.cpp @@ -167,8 +167,8 @@ StoragePtr StorageFactory::get( ASTs & args_func = dynamic_cast(*dynamic_cast(*query).storage).children; if (args_func.size() != 1) - throw Exception("Storage MergeTree requires exactly 3 parameters" - " - name of column with date, primary key expression, index granularity.", + throw Exception("Storage MergeTree requires 3 or 4 parameters" + " - name of column with date, [name of column for sampling], primary key expression, index granularity.", ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH); ASTs & args = dynamic_cast(*args_func.at(0)).children; @@ -206,8 +206,8 @@ StoragePtr StorageFactory::get( ASTs & args_func = dynamic_cast(*dynamic_cast(*query).storage).children; if (args_func.size() != 1) - throw Exception("Storage CollapsingMergeTree requires exactly 4 parameters" - " - name of column with date, primary key expression, index granularity, sign_column.", + throw Exception("Storage CollapsingMergeTree requires 4 or 5 parameters" + " - name of column with date, [name of column for sampling], primary key expression, index granularity, sign_column.", ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH); ASTs & args = dynamic_cast(*args_func.at(0)).children; -- GitLab