xudong963 commented on code in PR #22177:
URL: https://github.com/apache/datafusion/pull/22177#discussion_r3246164881
##########
datafusion/physical-plan/src/operator_statistics/mod.rs:
##########
@@ -809,11 +809,8 @@ impl StatisticsProvider for JoinStatisticsProvider {
_ => return left_rows.saturating_mul(right_rows),
}
}
- if ndv_divisor > 0 {
- left_rows.saturating_mul(right_rows) / ndv_divisor
- } else {
Review Comment:
The `checked_div(...).unwrap_or(max_rows)` form hides the "NDV unknown →
cartesian" intent
--
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]