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 f8d85d85d2a [Fix](inverted index) make parser mode coarse grained by 
default (#24949)
f8d85d85d2a is described below

commit f8d85d85d2a42081ead9277d1fe40bea92400e61
Author: airborne12 <[email protected]>
AuthorDate: Wed Sep 27 21:04:41 2023 +0800

    [Fix](inverted index) make parser mode coarse grained by default (#24949)
---
 .../src/main/java/org/apache/doris/analysis/InvertedIndexUtil.java      | 2 +-
 .../org/apache/doris/nereids/glue/translator/ExpressionTranslator.java  | 2 +-
 2 files changed, 2 insertions(+), 2 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 5fe3d47dfa0..4196f774e2b 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
@@ -52,7 +52,7 @@ public class InvertedIndexUtil {
     public static String getInvertedIndexParserMode(Map<String, String> 
properties) {
         String mode = properties == null ? null : 
properties.get(INVERTED_INDEX_PARSER_MODE_KEY);
         // default is "none" if not set
-        return mode != null ? mode : INVERTED_INDEX_PARSER_FINE_GRANULARITY;
+        return mode != null ? mode : INVERTED_INDEX_PARSER_COARSE_GRANULARITY;
     }
 
     public static Map<String, String> getInvertedIndexCharFilter(Map<String, 
String> properties) {
diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/nereids/glue/translator/ExpressionTranslator.java
 
b/fe/fe-core/src/main/java/org/apache/doris/nereids/glue/translator/ExpressionTranslator.java
index 445817f9e65..581ed8f3dda 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/nereids/glue/translator/ExpressionTranslator.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/nereids/glue/translator/ExpressionTranslator.java
@@ -189,7 +189,7 @@ public class ExpressionTranslator extends 
DefaultExpressionVisitor<Expr, PlanTra
     @Override
     public Expr visitMatch(Match match, PlanTranslatorContext context) {
         String invertedIndexParser = 
InvertedIndexUtil.INVERTED_INDEX_PARSER_UNKNOWN;
-        String invertedIndexParserMode = 
InvertedIndexUtil.INVERTED_INDEX_PARSER_FINE_GRANULARITY;
+        String invertedIndexParserMode = 
InvertedIndexUtil.INVERTED_INDEX_PARSER_COARSE_GRANULARITY;
         Map<String, String> invertedIndexCharFilter = new HashMap<>();
         SlotRef left = (SlotRef) match.left().accept(this, context);
         OlapTable olapTbl = 
Optional.ofNullable(getOlapTableFromSlotDesc(left.getDesc()))


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to