From 87faa856d1ffeec00370ae22490b667b340cdb1e Mon Sep 17 00:00:00 2001 From: Jingsong Date: Mon, 16 Dec 2024 17:58:51 +0800 Subject: [PATCH] fix --- .../java/org/apache/paimon/flink/clone/CopyFileOperator.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/clone/CopyFileOperator.java b/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/clone/CopyFileOperator.java index b64ebfc7d632..8bcaa2a2071f 100644 --- a/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/clone/CopyFileOperator.java +++ b/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/clone/CopyFileOperator.java @@ -34,6 +34,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.util.HashMap; import java.util.Map; /** A Operator to copy files. */ @@ -63,6 +64,8 @@ public void open() throws Exception { FlinkCatalogFactory.createPaimonCatalog(Options.fromMap(sourceCatalogConfig)); targetCatalog = FlinkCatalogFactory.createPaimonCatalog(Options.fromMap(targetCatalogConfig)); + srcLocations = new HashMap<>(); + targetLocations = new HashMap<>(); } @Override