Fix index type name in the error message

This commit is contained in:
ruslandoga 2024-11-19 13:02:14 +07:00 committed by GitHub
parent 6aa2fe525e
commit e0896ab8be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -748,7 +748,7 @@ MergeTreeIndexGranulePtr MergeTreeIndexFullText::createIndexGranule() const
/// have an old index. /// have an old index.
/// TODO: remove this at the end of 2024. /// TODO: remove this at the end of 2024.
if (index.type == INVERTED_INDEX_NAME) if (index.type == INVERTED_INDEX_NAME)
throw Exception(ErrorCodes::ILLEGAL_INDEX, "Indexes of type 'inverted' are no longer supported. Please drop and recreate the index as type 'full-text'"); throw Exception(ErrorCodes::ILLEGAL_INDEX, "Indexes of type 'inverted' are no longer supported. Please drop and recreate the index as type 'full_text'");
/// ------ /// ------
return std::make_shared<MergeTreeIndexGranuleFullText>(index.name, index.column_names.size(), params); return std::make_shared<MergeTreeIndexGranuleFullText>(index.name, index.column_names.size(), params);