alamb commented on code in PR #11491:
URL: https://github.com/apache/datafusion/pull/11491#discussion_r1682561104
##########
datafusion/optimizer/src/analyzer/type_coercion.rs:
##########
@@ -103,6 +103,16 @@ fn analyze_internal(
// select t2.c2 from t1 where t1.c1 in (select t2.c1 from t2 where
t2.c2=t1.c3)
schema.merge(external_schema);
+ if let LogicalPlan::Filter(filter) = &mut plan {
+ if let Ok(new_predicate) = filter
+ .predicate
+ .clone()
Review Comment:
I found a way to avoid this clone:
https://github.com/apache/datafusion/pull/11530
--
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]