Skip to content

Commit

Permalink
[fix](Nereids) NPE when create table with implicit index type (#32893)
Browse files Browse the repository at this point in the history
  • Loading branch information
morrySnow authored and Doris-Extras committed Mar 31, 2024
1 parent 7f28436 commit 8586df6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2610,6 +2610,10 @@ public IndexDefinition visitIndexDef(IndexDefContext ctx) {
Map<String, String> properties = visitPropertyItemList(ctx.properties);
String indexType = ctx.indexType != null ? ctx.indexType.getText().toUpperCase() : null;
String comment = ctx.comment != null ? ctx.comment.getText() : "";
// change BITMAP index to INVERTED index
if ("BITMAP".equalsIgnoreCase(indexType)) {
indexType = "INVERTED";
}
return new IndexDefinition(indexName, indexCols, indexType, properties, comment);
}

Expand Down

0 comments on commit 8586df6

Please sign in to comment.