This is an automated email from the ASF dual-hosted git repository.
kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new b8193dcf7ee [fix](inverted index)Remove the strong check for `parser`
when creating a table with inverted index (#31391) (#31429)
b8193dcf7ee is described below
commit b8193dcf7ee9633ae15b2450edce7195375310d5
Author: qiye <[email protected]>
AuthorDate: Tue Feb 27 20:26:14 2024 +0800
[fix](inverted index)Remove the strong check for `parser` when creating a
table with inverted index (#31391) (#31429)
---
.../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 8ce732185d1..05464a148f5 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]