rubenada commented on code in PR #3854:
URL: https://github.com/apache/calcite/pull/3854#discussion_r1676405517
##########
core/src/main/java/org/apache/calcite/sql2rel/RelDecorrelator.java:
##########
@@ -560,11 +560,15 @@ protected RexNode removeCorrelationExpr(
// Now add the corVars from the input, starting from
// position oldGroupKeyCount.
for (Map.Entry<CorDef, Integer> entry : frame.corDefOutputs.entrySet()) {
- RexInputRef.add2(projects, entry.getValue(), newInputOutput);
-
- corDefOutputs.put(entry.getKey(), newPos);
- mapNewInputToProjOutputs.put(entry.getValue(), newPos);
- newPos++;
+ final Integer pos = mapNewInputToProjOutputs.get(entry.getValue());
Review Comment:
Agree. Comment added.
--
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]