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: [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]