rubenada commented on code in PR #3861:
URL: https://github.com/apache/calcite/pull/3861#discussion_r1680548040


##########
core/src/main/java/org/apache/calcite/rel/metadata/RelMdMaxRowCount.java:
##########
@@ -159,7 +159,7 @@ && allGroupKeysAreConstant(rel, predicateList)) {
     return rowCount * rel.getGroupSets().size();
   }
 
-  private static boolean allGroupKeysAreConstant(Aggregate aggregate,
+  static boolean allGroupKeysAreConstant(Aggregate aggregate,

Review Comment:
   For the moment we want to reuse this just in RelMdRowCount, so I think it's 
better to have it package-private. It can be reviewed in the future if it is 
needed elsewhere, but at this point this should be sufficient.



##########
core/src/test/java/org/apache/calcite/test/RelMetadataTest.java:
##########
@@ -788,6 +788,20 @@ final RelMetadataFixture sql(String sql) {
     sql(sql).assertThatRowCount(is(1D), is(0D), is(1D));
   }
 
+  @Test void testRowCountAggregateConstantKeysOnBigInput() {

Review Comment:
   done



-- 
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]

Reply via email to