You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Jess Balint (JIRA)" <ji...@apache.org> on 2017/02/09 17:27:41 UTC
[jira] [Created] (CALCITE-1627) Statistics.of() instance doesn't
acknowledge super sets of keys
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)