morrySnow commented on code in PR #28392:
URL: https://github.com/apache/doris/pull/28392#discussion_r1426377320


##########
fe/fe-core/src/main/java/org/apache/doris/analysis/CreateTableStmt.java:
##########
@@ -523,12 +523,7 @@ public void analyze(Analyzer analyzer) throws 
UserException, AnalysisException {
             }
 
             if (columnDef.getType().isObjectStored()) {
-                if (columnDef.getType().isBitmapType()) {

Review Comment:
   do we check bitmap could not be key?



##########
fe/fe-core/src/main/java/org/apache/doris/analysis/CreateTableStmt.java:
##########
@@ -523,12 +523,7 @@ public void analyze(Analyzer analyzer) throws 
UserException, AnalysisException {
             }
 
             if (columnDef.getType().isObjectStored()) {
-                if (columnDef.getType().isBitmapType()) {
-                    if (keysDesc.getKeysType() == KeysType.DUP_KEYS) {
-                        throw new AnalysisException("column:" + 
columnDef.getName()
-                                + " must be used in AGG_KEYS or UNIQUE_KEYS.");
-                    }
-                } else {
+                if (!columnDef.getType().isBitmapType()) {

Review Comment:
   please fix nereids CreateTableCommand too



-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to