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 Mar 27, 2024
1 parent df8e703 commit 22b8038
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2625,7 +2625,7 @@ public IndexDefinition visitIndexDef(IndexDefContext ctx) {
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 (indexType.equalsIgnoreCase("BITMAP")) {
if ("BITMAP".equalsIgnoreCase(indexType)) {
indexType = "INVERTED";
}
return new IndexDefinition(indexName, indexCols, indexType, properties, comment);
Expand Down

0 comments on commit 22b8038

Please sign in to comment.