stalary commented on code in PR #7403: URL: https://github.com/apache/incubator-doris/pull/7403#discussion_r880043644
########## fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java: ########## @@ -357,8 +359,17 @@ public void execute(TUniqueId queryId) throws Exception { context.getState().setError(e.getMysqlErrorCode(), e.getMessage()); return; } - // limitations: partitionNum, tabletNum, cardinality + // limitations: partition_num, tablet_num, cardinality + List<ScanNode> scanNodeList = planner.getScanNodes(); + for (ScanNode scanNode : scanNodeList) { + if (scanNode instanceof OlapScanNode) { + OlapScanNode olapScanNode = (OlapScanNode) scanNode; + Catalog.getCurrentCatalog().getSqlBlockRuleMgr().checkLimitaions(olapScanNode.getSelectedPartitionNum().longValue(), + olapScanNode.getSelectedTabletsNum(), olapScanNode.getCardinality(), analyzer.getQualifiedUser()); Review Comment: Ok, I will fix it in my PR for a Bugfix. -- 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