zhangjun0x01 commented on a change in pull request #1936:
URL: https://github.com/apache/iceberg/pull/1936#discussion_r562450473



##########
File path: 
flink/src/test/java/org/apache/iceberg/flink/TestFlinkTableSource.java
##########
@@ -137,7 +136,10 @@ public void testFilterPushDownEqual() {
     Assert.assertEquals("Should have 1 record", 1, result.size());
     Assert.assertArrayEquals("Should produce the expected record", 
expectRecord, result.get(0));
 
-    Assert.assertEquals("Should create only one scan", 1, scanEventCount);
+    // Because we add infer parallelism, all data files will be scanned first.
+    // Flink will call FlinkInputFormat#createInputSplits method to scan the 
data files,
+    // plus the operation to get the execution plan, so there are three scan 
event.
+    Assert.assertEquals("Should create 3 scans", 3, scanEventCount);

Review comment:
       yes,I update it




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