Jess Balint created CALCITE-1627:
------------------------------------
Summary: Statistics.of() instance doesn't acknowledge super sets
of keys
Key: CALCITE-1627
URL: https://issues.apache.org/jira/browse/CALCITE-1627
Project: Calcite
Issue Type: Bug
Components: core
Reporter: Jess Balint
Assignee: Julian Hyde
Priority: Minor
The default instance of {{Statistic}} returned by {{Statistics.of()}} doesn't
acknowledge keys which contain other keys.
{code:java}
public boolean isKey(ImmutableBitSet columns) {
for (ImmutableBitSet key : keys) {
if (columns.contains(key)) {
return true;
}
}
return false;
}
{code}
This test should also return true for bit sets which subsume a key, e.g. if A
is a key then AB is also a key.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)