BePPPower commented on code in PR #48022: URL: https://github.com/apache/doris/pull/48022#discussion_r1964931877
########## fe/fe-core/src/main/java/org/apache/doris/load/ExportTaskExecutor.java: ########## @@ -89,16 +89,14 @@ public void execute() throws JobException { LOG.debug("[Export Task] taskId: {} updating state to EXPORTING", taskId); exportJob.updateExportJobState(ExportJobState.EXPORTING, taskId, null, null, null); List<OutfileInfo> outfileInfoList = Lists.newArrayList(); - for (int idx = 0; idx < selectStmtLists.size(); ++idx) { - LOG.debug("[Export Task] taskId: {} processing statement {}/{}", - taskId, idx + 1, selectStmtLists.size()); + if (selectStmt.isPresent()) { Review Comment: If we export table without data, we would construct an `ExportTaskExecuto`r with empty `selectStmt` -- 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