nishant94 commented on code in PR #64667:
URL: https://github.com/apache/doris/pull/64667#discussion_r3629545063
##########
fe/fe-catalog/src/main/java/org/apache/doris/analysis/InvertedIndexProperties.java:
##########
@@ -81,13 +85,24 @@ public static String getInvertedIndexParserMode(Map<String,
String> properties)
return INVERTED_INDEX_PARSER_COARSE_GRANULARITY;
}
String mode = properties.get(INVERTED_INDEX_PARSER_MODE_KEY);
+ if (mode != null) {
+ return mode;
+ }
String parser = properties.get(INVERTED_INDEX_PARSER_KEY);
if (parser == null) {
parser = properties.get(INVERTED_INDEX_PARSER_KEY_ALIAS);
}
- return mode != null ? mode :
- INVERTED_INDEX_PARSER_IK.equals(parser) ?
INVERTED_INDEX_PARSER_SMART :
- INVERTED_INDEX_PARSER_COARSE_GRANULARITY;
+ if (INVERTED_INDEX_PARSER_IK.equals(parser)) {
+ return INVERTED_INDEX_PARSER_SMART;
+ }
Review Comment:
Handled at the BE, which is more robust than materializing at DDL
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]