[Fix](inverted index) make parser mode coarse grained by default (#24949)

This commit is contained in:
airborne12
2023-09-27 21:04:41 +08:00
committed by GitHub
parent d4e823950a
commit 732f821c15
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -197,7 +197,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()))