You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Jesus Camacho Rodriguez (JIRA)" <ji...@apache.org> on 2016/08/30 15:24:20 UTC
[jira] [Created] (CALCITE-1366) Metadata provider for predicates
pulls up expressions without references incorrectly
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)