mertak-synnada commented on PR #14685: URL: https://github.com/apache/datafusion/pull/14685#issuecomment-2662675526
Hello, thanks for reproducing the bug and the PR! I think the problem is not with the call order of the functions but with missing behavior. How about changing the `with_projection` method to update statistics as well? Just like we do in the `with_source`. ```rust let ( _projected_schema, _constraints, projected_statistics, _projected_output_ordering, ) = self.project(); self.source = source.with_statistics(projected_statistics); ``` -- 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