HappenLee commented on code in PR #33736:
URL: https://github.com/apache/doris/pull/33736#discussion_r1568287621


##########
fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java:
##########
@@ -2729,21 +2729,8 @@ private void createOlapTable(Database db, 
CreateTableStmt stmt) throws UserExcep
                             .getDynamicPartitionProperty();
                     if (dynamicProperty.isExist() && 
dynamicProperty.getEnable()
                             && partitionDesc.isAutoCreatePartitions()) {
-                        String dynamicUnit = dynamicProperty.getTimeUnit();
-                        ArrayList<Expr> autoExprs = 
partitionDesc.getPartitionExprs();
-                        for (Expr autoExpr : autoExprs) {
-                            Expr func = (FunctionCallExpr) autoExpr;
-                            for (Expr child : func.getChildren()) {
-                                if (child instanceof LiteralExpr) {
-                                    String autoUnit = ((LiteralExpr) 
child).getStringValue();
-                                    if 
(!dynamicUnit.equalsIgnoreCase(autoUnit)) {
-                                        throw new AnalysisException(
-                                                "If support auto partition and 
dynamic partition at same time, "
-                                                        + "they must have the 
same interval unit.");
-                                    }
-                                }
-                            }
-                        }
+                        throw new AnalysisException(

Review Comment:
   why the Execption in two different part ?



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