morningman commented on code in PR #35102:
URL: https://github.com/apache/doris/pull/35102#discussion_r1609904909


##########
fe/fe-core/src/main/java/org/apache/doris/load/ExportJob.java:
##########
@@ -511,15 +511,23 @@ private List<List<List<Long>>> splitTablets() throws 
UserException {
             // get partitions
             // user specifies partitions, already checked in ExportCommand
             if (!this.partitionNames.isEmpty()) {
-                this.partitionNames.forEach(partitionName -> 
partitions.add(table.getPartition(partitionName)));
+                this.partitionNames.forEach(partitionName -> {
+                    Partition partition = table.getPartition(partitionName);
+                    if (partition.hasData()) {
+                        partitions.add(table.getPartition(partitionName));

Review Comment:
   ```suggestion
                           partitions.add(partition);
   ```



-- 
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]

Reply via email to