wypoon opened a new pull request, #5755:
URL: https://github.com/apache/iceberg/pull/5755

   #5720 added `estimatedRowsCount` to `ScanTask` and provided an 
implementation in `ContentScanTask`.
   For a `ScanTask` that scans the entire data file, we can do better for this 
estimate, and return the row count from the metadata.
   I added a parameterized test, that fails without this fix, for the parquet 
and orc format (it passes for the avro format). Instead of returning a count of 
10000 for the number of rows (we wrote 10000 rows), it returns 9998 for parquet 
and 9937 for orc. With the fix, the row count is 10000 for all 3 formats.
   In case a file is bigger than the read split size, then there is no escaping 
underestimating the row count, because whenever the `scannedFileFraction` < 
1.0, there is rounding down when multiplying the row count by the fraction and 
casting to long.
   
   Note: This bug is already present in #4446.


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