mihaibudiu commented on code in PR #5267:
URL: https://github.com/apache/calcite/pull/5267#discussion_r4031174153


##########
core/src/main/java/org/apache/calcite/rel/metadata/RelMdSelectivity.java:
##########
@@ -180,14 +180,29 @@ protected RelMdSelectivity() {
     final List<RexNode> notPushable = new ArrayList<>();
     final List<RexNode> pushable = new ArrayList<>();
     RelOptUtil.splitFilters(
-        rel.getGroupSet(),
+        ImmutableBitSet.range(rel.getGroupCount()),
         predicate,
         pushable,
         notPushable);
     final RexBuilder rexBuilder = rel.getCluster().getRexBuilder();
     RexNode childPred =
         RexUtil.composeConjunction(rexBuilder, pushable, true);
 
+    if (childPred != null) {

Review Comment:
   apparently this bug exists in RelMdDistinctRowCount too; is it one of the 
ones you are tracking?



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