NobiGo commented on code in PR #4691:
URL: https://github.com/apache/calcite/pull/4691#discussion_r2634384445
##########
core/src/main/java/org/apache/calcite/sql2rel/RelFieldTrimmer.java:
##########
@@ -673,7 +673,7 @@ public TrimResult trimFields(
// Build new filter with trimmed input and condition.
relBuilder.push(newInput)
- .filter(filter.getVariablesSet(), newConditionExpr);
+ .filter(correlationIds, newConditionExpr);
Review Comment:
Because during the SqlToRelConverter process, some correlation variables
from subqueries cannot be fully extracted due to scope limitations, I am
considering merging the correlation variables already present in the RelNode
with those newly extracted from subqueries. WDYT?
--
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]