mihaibudiu commented on code in PR #4757:
URL: https://github.com/apache/calcite/pull/4757#discussion_r2710488295
##########
core/src/test/resources/sql/sub-query.iq:
##########
@@ -7880,4 +7880,26 @@ WHERE deptno NOT IN (
# Reset to default value 20
!set trimfields true
+!use scott
Review Comment:
I have validated this using Postgres
##########
core/src/main/java/org/apache/calcite/rel/rules/AggregateProjectMergeRule.java:
##########
@@ -110,6 +110,14 @@ public AggregateProjectMergeRule(
newGroupingSets =
ImmutableBitSet.ORDERING.immutableSortedCopy(
ImmutableBitSet.permute(aggregate.getGroupSets(), map));
+ for (int i = 0; i < newGroupingSets.size() - 1; i++) {
Review Comment:
Maybe you want to change the issue title (and PR, commit): this is not an
issue with "calcite", but with this specific rule.
--
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]