a-rafay commented on code in PR #4113:
URL: https://github.com/apache/calcite/pull/4113#discussion_r1898664445
##########
core/src/main/java/org/apache/calcite/rel/rules/ProjectWindowTransposeRule.java:
##########
@@ -217,6 +217,15 @@ private static ImmutableBitSet findReference(final Project
project,
}
}
+ List<RexNode> analyze = new ArrayList<>();
+ if (group.lowerBound.getOffset() != null) {
+ analyze.add(group.lowerBound.getOffset());
+ }
+ if (group.upperBound.getOffset() != null) {
+ analyze.add(group.upperBound.getOffset());
+ }
+ referenceFinder.apply(analyze);
+
Review Comment:
RexWindowBound accepts RexVisitor. In your case, if its a bounded window
bound, it should take care of visiting the offset (also offset is not
nullable). See this:
https://github.com/apache/calcite/blob/main/core/src/main/java/org/apache/calcite/rex/RexWindowBounds.java#L181
--
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]