This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch branch-2.1 in repository https://gitbox.apache.org/repos/asf/doris.git
commit dd229b77b11d149a3547aefd881723f3f9458a3f Author: qiye <[email protected]> AuthorDate: Mon Feb 26 19:13:03 2024 +0800 [fix](inverted index)Remove the strong check for `parser` when creating a table with inverted index (#31391) --- .../src/main/java/org/apache/doris/analysis/InvertedIndexUtil.java | 3 --- regression-test/suites/inverted_index_p0/test_properties.groovy | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) 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 44e8bd15347..b57eae7746b 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 84b0aef8f3e..b210e494707 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' --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
