wutiangan commented on a change in pull request #2883: add column type check 
when create bitmap index using create index clause
URL: https://github.com/apache/incubator-doris/pull/2883#discussion_r377632933
 
 

 ##########
 File path: fe/src/main/java/org/apache/doris/analysis/CreateTableStmt.java
 ##########
 @@ -412,9 +412,13 @@ public void analyze(Analyzer analyzer) throws 
UserException {
 
                             // key columns and none/replace aggregate non-key 
columns support
                             if (indexDef.getIndexType() == 
IndexDef.IndexType.BITMAP) {
-                                    if (!(colType == PrimitiveType.TINYINT || 
colType == PrimitiveType.SMALLINT
-                                                  || colType == 
PrimitiveType.INT || colType == PrimitiveType.BIGINT ||
-                                                  colType == 
PrimitiveType.CHAR || colType == PrimitiveType.VARCHAR)) {
+                                    if (!(colType == PrimitiveType.TINYINT || 
colType == PrimitiveType.SMALLINT ||
 
 Review comment:
   use isNumericType(), not list all type

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to