adriangb commented on code in PR #17216:
URL: https://github.com/apache/datafusion/pull/17216#discussion_r2298030117


##########
datafusion/pruning/src/pruning_predicate.rs:
##########
@@ -1369,7 +1368,7 @@ impl PredicateRewriter {
         let mut required_columns = RequiredColumns::new();
         build_predicate_expression(
             expr,
-            schema,
+            &Arc::new(schema.clone()),

Review Comment:
   Seems like in this case we've just moved the problem up a level. Should we 
edit `rewrite_predicate_to_statistics_predicate` to also accept an 
`&SchemaRef`? cc @xudong963 



-- 
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

Reply via email to