diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/InvertedIndexUtil.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/InvertedIndexUtil.java index 44e8bd1534..b57eae7746 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/InvertedIndexUtil.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/InvertedIndexUtil.java @@ -104,9 +104,6 @@ public class InvertedIndexUtil { String parser = null; if (properties != null) { parser = properties.get(INVERTED_INDEX_PARSER_KEY); - if (parser == null && !properties.isEmpty()) { - throw new AnalysisException("Invalid index properties, parser must not be none"); - } checkInvertedIndexProperties(properties); } diff --git a/regression-test/suites/inverted_index_p0/test_properties.groovy b/regression-test/suites/inverted_index_p0/test_properties.groovy index 84b0aef8f3..b210e49470 100644 --- a/regression-test/suites/inverted_index_p0/test_properties.groovy +++ b/regression-test/suites/inverted_index_p0/test_properties.groovy @@ -132,7 +132,7 @@ suite("test_properties", "p0"){ "replication_allocation" = "tag.location.default: 1" ); """ - create_table_with_inverted_index_properties(invalid_property_key, "Invalid index properties, parser must not be none") + create_table_with_inverted_index_properties(invalid_property_key, "Invalid inverted index property key:") assertEquals(success, false) def invalid_property_key2 = """ @@ -171,7 +171,7 @@ suite("test_properties", "p0"){ CREATE TABLE IF NOT EXISTS ${indexTblName}( `id` int(11) NULL, `c` text NULL, - INDEX c_idx(`c`) USING INVERTED PROPERTIES("parser"="english", "ignore_above"="non_numeric") COMMENT '' + INDEX c_idx(`c`) USING INVERTED PROPERTIES("ignore_above"="non_numeric") COMMENT '' ) ENGINE=OLAP DUPLICATE KEY(`id`) COMMENT 'OLAP'