morrySnow commented on code in PR #30867:
URL: https://github.com/apache/doris/pull/30867#discussion_r1479428478
##########
fe/fe-core/src/main/java/org/apache/doris/analysis/PartitionDesc.java:
##########
@@ -159,6 +159,15 @@ public void analyze(List<ColumnDef> columnDefs,
Map<String, String> otherPropert
throw new AnalysisException("No partition columns.");
}
+ int createTablePartitionMaxNum =
ConnectContext.get().getSessionVariable().getCreateTablePartitionMaxNum();
+ if (singlePartitionDescs.size() > createTablePartitionMaxNum) {
+ throw new
org.apache.doris.nereids.exceptions.AnalysisException(String.format(
Review Comment:
should use legacy planner's AnalysisException
--
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]