zclllyybb commented on code in PR #33736:
URL: https://github.com/apache/doris/pull/33736#discussion_r1568300076
##########
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:
It's legacy and nereids planner
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]