diff --git a/src/Storages/MergeTree/GinIndexStore.cpp b/src/Storages/MergeTree/GinIndexStore.cpp index 6e0273701ad..e92460ff498 100644 --- a/src/Storages/MergeTree/GinIndexStore.cpp +++ b/src/Storages/MergeTree/GinIndexStore.cpp @@ -24,6 +24,7 @@ namespace ErrorCodes { extern const int LOGICAL_ERROR; extern const int UNKNOWN_FORMAT_VERSION; + extern const int NOT_IMPLEMENTED; }; GinIndexPostingsBuilder::GinIndexPostingsBuilder(UInt64 limit) @@ -153,13 +154,18 @@ GinIndexStore::GinIndexStore(const String & name_, DataPartStoragePtr storage_) : name(name_) , storage(storage_) { + if (storage->getType() != MergeTreeDataPartStorageType::Full) + throw Exception(ErrorCodes::NOT_IMPLEMENTED, "INDEX {} with 'full_text' type supports only full storage", name); } + GinIndexStore::GinIndexStore(const String & name_, DataPartStoragePtr storage_, MutableDataPartStoragePtr data_part_storage_builder_, UInt64 max_digestion_size_) : name(name_) , storage(storage_) , data_part_storage_builder(data_part_storage_builder_) , max_digestion_size(max_digestion_size_) { + if (storage->getType() != MergeTreeDataPartStorageType::Full) + throw Exception(ErrorCodes::NOT_IMPLEMENTED, "INDEX {} with 'full_text' type supports only full storage", name); } bool GinIndexStore::exists() const