From 5069f009bc0ab2927727d32d06fcd685c8257abb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E5=87=AF?= Date: Wed, 20 Dec 2023 17:43:16 +0800 Subject: [PATCH] format --- .../java/org/apache/doris/analysis/InvertedIndexUtil.java | 4 ++-- 1 file 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 633cb174adbd12..2cd62692337ed1 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 @@ -113,13 +113,13 @@ public static void checkInvertedIndexParser(String indexColName, PrimitiveType c throw new AnalysisException("invalid index properties, ignore_above must be integer"); } } - String lowerCase = properties.get(INVERTED_INDEX_PARSER_LOWERCASE); if (lowerCase != null) { - if ( lowerCase != "true" && lowerCase != "false") { + if (!"true".equals(lowerCase) && !"false".equals(lowerCase)) { throw new AnalysisException("invalid index properties, lowercase must be true or false"); } } + } // default is "none" if not set