neuyilan commented on code in PR #4844:
URL: https://github.com/apache/paimon/pull/4844#discussion_r1914417767
##########
paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/clone/CloneFileInfo.java:
##########
@@ -18,29 +18,35 @@
package org.apache.paimon.flink.clone;
+import javax.annotation.Nullable;
+
/** The information of copy file. */
public class CloneFileInfo {
-
- private final String sourceFilePath;
- private final String filePathExcludeTableRoot;
+ @Nullable private final String sourceFilePath;
+ @Nullable private final String filePathExcludeTableRoot;
private final String sourceIdentifier;
private final String targetIdentifier;
+ private final long snapshotId;
Review Comment:
This variable is used to transfer selections between upstream and
downstream. For example, when creating the schema file, the latest snapshotid
of the snapshot is determined. When selecting the data file later, the snapshot
id is used for selection. Because in this process, the latest snapshot may
change. If the snapshot id is not passed, the cloned schema file and data file
may not be from the same snapshot.
--
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]