BePPPower commented on code in PR #23635: URL: https://github.com/apache/doris/pull/23635#discussion_r1311716821
########## fe/fe-core/src/main/java/org/apache/doris/load/ExportTaskExecutor.java: ########## @@ -85,8 +90,18 @@ public void execute() throws JobException { OlapTable table = db.getOlapTableOrAnalysisException(exportJob.getTableName().getTbl()); table.readLock(); try { - SelectStmt selectStmt = selectStmtLists.get(idx); - List<Long> tabletIds = selectStmt.getTableRefs().get(0).getSampleTabletIds(); + List<Long> tabletIds; + if (exportJob.getSessionVariables().isEnableNereidsPlanner()) { + LogicalPlanAdapter logicalPlanAdapter = (LogicalPlanAdapter) selectStmtLists.get(idx); + Optional<UnboundRelation> unboundRelation = findUnboundRelation( + logicalPlanAdapter.getLogicalPlan()); + tabletIds = unboundRelation.get().getTabletIds(); + logicalPlanAdapter.getLogicalPlan().getLogicalProperties(); Review Comment: I will delete it. -- 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