alamb commented on code in PR #15659: URL: https://github.com/apache/datafusion/pull/15659#discussion_r2035729176
########## datafusion/datasource/src/statistics.rs: ########## @@ -545,77 +541,12 @@ pub fn compute_all_files_statistics( Ok((file_groups_with_stats, statistics)) } +#[deprecated(since = "47.0.0", note = "Use Statistics::add")] pub fn add_row_stats( file_num_rows: Precision<usize>, num_rows: Precision<usize>, ) -> Precision<usize> { - match (file_num_rows, &num_rows) { - (Precision::Absent, _) => num_rows.to_inexact(), - (lhs, Precision::Absent) => lhs.to_inexact(), - (lhs, rhs) => lhs.add(rhs), - } -} - -/// If the given value is numerically greater than the original maximum value, -/// return the new maximum value with appropriate exactness information. -fn set_max_if_greater( Review Comment: this code is the same as Precision::min and Precision::max, so we can avoid the duplication -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org