aokolnychyi commented on code in PR #5720:
URL: https://github.com/apache/iceberg/pull/5720#discussion_r965798903
##########
core/src/test/java/org/apache/iceberg/TestDataTableScan.java:
##########
@@ -27,4 +34,56 @@ public TestDataTableScan(int formatVersion) {
protected TableScan newScan() {
return table.newScan();
}
+
+ @Test
+ public void testTaskRowCounts() {
+ Assume.assumeTrue(formatVersion == 2);
+
+ DataFile dataFile1 = newDataFile("data_bucket=0");
+ table.newFastAppend().appendFile(dataFile1).commit();
+
+ DataFile dataFile2 = newDataFile("data_bucket=1");
+ table.newFastAppend().appendFile(dataFile2).commit();
+
+ DeleteFile deleteFile1 = newDeleteFile("data_bucket=0");
+ table.newRowDelta().addDeletes(deleteFile1).commit();
+
+ DeleteFile deleteFile2 = newDeleteFile("data_bucket=1");
+ table.newRowDelta().addDeletes(deleteFile2).commit();
+
+ TableScan scan = table.newScan().option(TableProperties.SPLIT_SIZE,
String.valueOf(50));
Review Comment:
Done.
##########
api/src/main/java/org/apache/iceberg/ScanTask.java:
##########
@@ -31,6 +31,15 @@ default long sizeBytes() {
return 4 * 1028 * 1028; // 4 MB
}
+ /**
+ * The estimated number of rows produced by this scan task.
+ *
+ * @return the estimated number of produced rows
+ */
+ default long rowsCount() {
Review Comment:
Done.
--
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]