Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2375,4 +2375,6 @@ public class Config extends ConfigBase {
"Stream_Load When importing, the maximum length of label is limited"})
public static int label_regex_length = 128;

@ConfField(mutable = true, masterOnly = true)
public static boolean enable_create_bitmap_index_as_inverted_index = true;
}
7 changes: 6 additions & 1 deletion fe/fe-core/src/main/cup/sql_parser.cup
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ import org.apache.doris.catalog.StructType;
import org.apache.doris.catalog.TableIf.TableType;
import org.apache.doris.catalog.View;
import org.apache.doris.common.AnalysisException;
import org.apache.doris.common.Config;
import org.apache.doris.common.FeConstants;
import org.apache.doris.common.Version;
import org.apache.doris.mysql.MysqlPassword;
Expand Down Expand Up @@ -3669,7 +3670,11 @@ opt_index_type ::=
:}
| KW_USING KW_BITMAP
{:
RESULT = IndexDef.IndexType.BITMAP;
if (Config.enable_create_bitmap_index_as_inverted_index) {
RESULT = IndexDef.IndexType.INVERTED;
} else {
RESULT = IndexDef.IndexType.BITMAP;
}
:}
| KW_USING KW_NGRAM_BF
{:
Expand Down