BePPPower commented on code in PR #23635:
URL: https://github.com/apache/doris/pull/23635#discussion_r1311716310
##########
fe/fe-core/src/main/java/org/apache/doris/load/ExportJob.java:
##########
@@ -356,25 +374,191 @@ private void generateQueryStmt() throws UserException {
if (LOG.isDebugEnabled()) {
for (int i = 0; i < selectStmtListPerParallel.size(); ++i) {
LOG.debug("ExportTaskExecutor {} is responsible for outfile:",
i);
- for (SelectStmt outfile : selectStmtListPerParallel.get(i)) {
+ for (StatementBase outfile : selectStmtListPerParallel.get(i))
{
LOG.debug("outfile sql: [{}]", outfile.toSql());
}
}
}
}
- private ArrayList<ArrayList<TableRef>> getTableRefListPerParallel() throws
UserException {
- ArrayList<ArrayList<Long>> tabletsListPerParallel = splitTablets();
+ private void generateLogicalPlanAdapter() throws UserException {
+ // generate 'select...into outfile' sql
+ generateOutfileSqlPerParallel();
+ // debug outfile sql
+ if (LOG.isDebugEnabled()) {
+ for (int i = 0; i < outfileSqlPerParallel.size(); ++i) {
+ LOG.debug("ExportTaskExecutor {} is responsible for outfile
sql:", i);
+ for (String outfileSql : outfileSqlPerParallel.get(i)) {
+ LOG.debug("outfile sql: [{}]", outfileSql);
+ }
+ }
+ }
+
+ outfileSqlPerParallel.stream().forEach(outfileSqlList -> {
+ List<StatementBase> logicalPlanAdapterList = Lists.newArrayList();
+ outfileSqlList.stream().forEach(outfileSql -> {
Review Comment:
done
--
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]