Description
In org.apache.calcite.rel.metadata.RelMdPredicates.java:
... for (RexNode r : inputInfo.pulledUpPredicates) { ImmutableBitSet rCols = RelOptUtil.InputFinder.bits(r); if (groupKeys.contains(rCols)) { r = r.accept(new RexPermuteInputsShuttle(m, input)); aggPullUpPredicates.add(r); } } ...
The check does not take into account that rCols might be empty, and then r cannot be pulled up e.g. count(*).
Attachments
Issue Links
- blocks
-
CALCITE-1356 Release Calcite 1.9.0
- Closed
- is related to
-
CALCITE-1368 Infer predicates for aggregate functions
- Open