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); }