calcite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jess Balint (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CALCITE-1627) Statistics.of() instance doesn't acknowledge super sets of keys
Date Thu, 09 Feb 2017 17:27:41 GMT
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)

Mime
View raw message