yittg commented on issue #2575:
URL: https://github.com/apache/iceberg/issues/2575#issuecomment-1047447027


   
   > 2. Committing with one file in each snapshot, but failed on the final 
assert.
   
   This can be fixed by the following change:
   
   ```
   --- 
a/flink/v1.14/flink/src/test/java/org/apache/iceberg/flink/SimpleDataUtil.java
   +++ 
b/flink/v1.14/flink/src/test/java/org/apache/iceberg/flink/SimpleDataUtil.java
   @@ -275,10 +275,10 @@ public class SimpleDataUtil {
          TableScan tableScan = table.newScan();
          if (current.parentId() != null) {
            // Collect the data files that was added only in current snapshot.
   -        tableScan.appendsBetween(current.parentId(), current.snapshotId());
   +        tableScan = tableScan.appendsBetween(current.parentId(), 
current.snapshotId());
          } else {
            // Collect the data files that was added in the oldest snapshot.
   -        tableScan.useSnapshot(current.snapshotId());
   +        tableScan = tableScan.useSnapshot(current.snapshotId());
          }
   ```


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