Dandandan commented on code in PR #13187:
URL: https://github.com/apache/datafusion/pull/13187#discussion_r1824330274
##########
datafusion/physical-plan/src/filter.rs:
##########
@@ -371,7 +371,12 @@ impl ExecutionPlan for FilterExec {
/// The output statistics of a filtering operation can be estimated if the
/// predicate's selectivity value can be determined for the incoming data.
fn statistics(&self) -> Result<Statistics> {
- Self::statistics_helper(&self.input, self.predicate(),
self.default_selectivity)
+ let stats = Self::statistics_helper(
Review Comment:
I think the global stats (`total_byte_size`) are not correct either, doesn't
take into account the reduced number of columns. It should do something similar
as `stats_projection` for `ProjectionExec`
--
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]