From bdc69a4175116a47bfd923153c9ea364f1c3d55a Mon Sep 17 00:00:00 2001 From: starocean999 <40539150+starocean999@users.noreply.github.com> Date: Sat, 6 Jan 2024 17:18:42 +0800 Subject: [PATCH] [fix](nereids)index type should be converted to upper case for later comparasion (#29524) --- .../org/apache/doris/nereids/parser/LogicalPlanBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java index aaa01c78db..5bfc465b30 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java @@ -2453,7 +2453,7 @@ public class LogicalPlanBuilder extends DorisParserBaseVisitor { String indexName = ctx.indexName.getText(); List indexCols = visitIdentifierList(ctx.cols); Map properties = visitPropertyItemList(ctx.properties); - String indexType = ctx.indexType != null ? ctx.indexType.getText() : null; + String indexType = ctx.indexType != null ? ctx.indexType.getText().toUpperCase() : null; String comment = ctx.comment != null ? ctx.comment.getText() : ""; return new IndexDefinition(indexName, indexCols, indexType, properties, comment); }