[chore](index) add config enable_create_bitmap_index_as_inverted_index default true #33434 (#35521)

This commit is contained in:
Kang
2024-06-04 12:07:03 +08:00
committed by GitHub
parent 398919d090
commit bc6b316e87
4 changed files with 15 additions and 2 deletions

View File

@ -2707,7 +2707,8 @@ public class LogicalPlanBuilder extends DorisParserBaseVisitor<Object> {
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)) {
if (Config.enable_create_bitmap_index_as_inverted_index
&& "BITMAP".equalsIgnoreCase(indexType)) {
indexType = "INVERTED";
}
return new IndexDefinition(indexName, indexCols, indexType, properties, comment);