mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-23 18:20:50 +00:00
Update MergeTreeIndices.cpp
This commit is contained in:
parent
8ac709b5d3
commit
404452bad3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user