From 57a5bef09e1354baff359f16362c5251ecc4364c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=8C=E6=B6=9B?= Date: Fri, 15 Dec 2023 11:49:56 +0800 Subject: [PATCH] optimize code --- .../MergeTree/MergeTreeIndexFullText.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/Storages/MergeTree/MergeTreeIndexFullText.cpp b/src/Storages/MergeTree/MergeTreeIndexFullText.cpp index fd577ed93db..23b95ed2c7d 100644 --- a/src/Storages/MergeTree/MergeTreeIndexFullText.cpp +++ b/src/Storages/MergeTree/MergeTreeIndexFullText.cpp @@ -565,24 +565,6 @@ bool MergeTreeConditionFullText::traverseTreeEquals( return true; } - if (function_name == "notEquals") - { - out.key_column = *key_index; - out.function = RPNElement::FUNCTION_NOT_EQUALS; - out.bloom_filter = std::make_unique(params); - const auto & value = const_value.get(); - token_extractor->stringToBloomFilter(value.data(), value.size(), *out.bloom_filter); - return true; - } - else if (function_name == "equals") - { - out.key_column = *key_index; - out.function = RPNElement::FUNCTION_EQUALS; - out.bloom_filter = std::make_unique(params); - const auto & value = const_value.get(); - token_extractor->stringToBloomFilter(value.data(), value.size(), *out.bloom_filter); - return true; - } else if (function_name == "has") { out.key_column = *key_index;