xiedeyantu commented on code in PR #4704:
URL: https://github.com/apache/calcite/pull/4704#discussion_r2644417879
##########
core/src/main/java/org/apache/calcite/rel/rules/FilterProjectTransposeRule.java:
##########
@@ -175,11 +176,13 @@ protected FilterProjectTransposeRule(
final RelNode input = project.getInput();
final RelTraitSet traitSet = filter.getTraitSet()
.replaceIfs(RelCollationTraitDef.INSTANCE,
- () -> Collections.singletonList(
-
input.getTraitSet().getTrait(RelCollationTraitDef.INSTANCE)))
+ () ->
input.getTraitSet().getTraits(RelCollationTraitDef.INSTANCE))
Review Comment:
This sql can repro using new decorrelator.
```
SELECT *
FROM (
SELECT e.deptno as e_deptno, d.deptno as d_deptno, e.ename
FROM emp e
JOIN dept d ON e.deptno = d.deptno
) t
WHERE e_deptno > 10;
!ok
```
But I think this change is beneficial.
--
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]