You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "hililiwei (via GitHub)" <gi...@apache.org> on 2023/02/06 09:13:23 UTC
[GitHub] [iceberg] hililiwei commented on a diff in pull request #5029: Flink: Use Tag or Branch to scan data.
hililiwei commented on code in PR #5029:
URL: https://github.com/apache/iceberg/pull/5029#discussion_r1097116000
##########
flink/v1.16/flink/src/main/java/org/apache/iceberg/flink/source/StreamingMonitorFunction.java:
##########
@@ -124,11 +126,33 @@ public void initializeState(FunctionInitializationContext context) throws Except
if (context.isRestored()) {
LOG.info("Restoring state for the {}.", getClass().getSimpleName());
lastSnapshotId = lastSnapshotIdState.get().iterator().next();
+ } else if (scanContext.startTag() != null) {
+ Snapshot currentSnapshot =
+ scanContext.branch() == null
+ ? table.currentSnapshot()
+ : table.snapshot(scanContext.branch());
+ Preconditions.checkNotNull(
Review Comment:
spark doesn't seem to use `Main` as the default.
My main concern is that `main` is not compatible with older version iceberg table.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org