jayzhan211 commented on code in PR #25576:
URL: https://github.com/apache/datafusion/pull/25576#discussion_r4171272426
##########
datafusion/datasource-parquet/src/metadata.rs:
##########
@@ -963,17 +961,14 @@ fn summarize_distinct_counts(
// Return early if there's no chance to reach the required coverage.
let remaining = num_row_groups - row_group_idx - 1;
if ndv_count + remaining < required_count {
- return Precision::Absent;
+ return Ok(Precision::Absent);
}
}
- match max_distinct_count {
- Some(distinct_count) if num_row_groups == 1 => {
- Precision::Exact(distinct_count as usize)
- }
+ Ok(match max_distinct_count {
Review Comment:
yes, add test
--
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]