diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/ExportCommand.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/ExportCommand.java index b43fc9348ceffb..afe50cf968b1b7 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/ExportCommand.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/ExportCommand.java @@ -246,7 +246,7 @@ private ExportJob generateExportJob(ConnectContext ctx, Map file exportJob.setTableName(tblName); exportJob.setExportTable(table); exportJob.setTableId(table.getId()); - + exportJob.setOrigStmt(ctx.getExecutor().getOriginStmt()); // set partitions exportJob.setPartitionNames(this.partitionsNames); // set where expression