Jesus Camacho Rodriguez created CALCITE-1366:
------------------------------------------------
Summary: Metadata provider for predicates pulls up expressions
without references incorrectly
Key: CALCITE-1366
URL: https://issues.apache.org/jira/browse/CALCITE-1366
Project: Calcite
Issue Type: Bug
Components: core
Affects Versions: 1.9.0
Reporter: Jesus Camacho Rodriguez
Assignee: Jesus Camacho Rodriguez
{code}
...
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);
}
}
...
{code}
The check does not take into account that _rCols_ might be empty, and then _r_
cannot be pulled up e.g. count(*).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)