Update MergeTreeIndices.cpp

This commit is contained in:
alexey-milovidov 2020-05-01 21:40:56 +03:00 committed by GitHub
parent 8ac709b5d3
commit 404452bad3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,10 +32,10 @@ std::unique_ptr<IMergeTreeIndex> MergeTreeIndexFactory::get(
bool attach) const
{
if (!node->type)
throw Exception( "for index TYPE is required", ErrorCodes::INCORRECT_QUERY);
throw Exception("TYPE is required for index", ErrorCodes::INCORRECT_QUERY);
if (node->type->parameters && !node->type->parameters->children.empty())
throw Exception( "Index type can not have parameters", ErrorCodes::INCORRECT_QUERY);
throw Exception("Index type cannot have parameters", ErrorCodes::INCORRECT_QUERY);
boost::algorithm::to_lower(node->type->name);
auto it = indexes.find(node->type->name);