diff --git a/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/orphan/FlinkOrphanFilesClean.java b/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/orphan/FlinkOrphanFilesClean.java index f50414620551..61bebca24af4 100644 --- a/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/orphan/FlinkOrphanFilesClean.java +++ b/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/orphan/FlinkOrphanFilesClean.java @@ -279,7 +279,7 @@ public void processElement2(StreamRecord element) { }); if (deletedInLocal.get() != 0) { - deleted = deleted.union(env.fromData(deletedInLocal.get())); + deleted = deleted.union(env.fromElements(deletedInLocal.get())); } return deleted; }