rdblue commented on a change in pull request #1348:
URL: https://github.com/apache/iceberg/pull/1348#discussion_r482592976



##########
File path: flink/src/test/java/org/apache/iceberg/flink/SimpleDataUtil.java
##########
@@ -126,12 +126,16 @@ public static void assertTableRows(String tablePath, 
List<RowData> expected) thr
     assertTableRecords(tablePath, expectedRecords);
   }
 
-  public static void assertTableRecords(String tablePath, List<Record> 
expected) throws IOException {
-    Preconditions.checkArgument(expected != null, "expected records shouldn't 
be null");
-    Table newTable = new HadoopTables().load(tablePath);
-    try (CloseableIterable<Record> iterable = 
IcebergGenerics.read(newTable).build()) {
+  public static void assertTableRecords(Table table, List<Record> expected) 
throws IOException {
+    table.refresh();

Review comment:
       Can this be done automatically when a write completes, or is this a 
completely separate copy of the 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.

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