Iurii Gerzhedovich created IGNITE-23244:
-------------------------------------------

             Summary: Sql. Provide information about PK to planner through 
statistics
                 Key: IGNITE-23244
                 URL: https://issues.apache.org/jira/browse/IGNITE-23244
             Project: Ignite
          Issue Type: Improvement
          Components: sql
            Reporter: Iurii Gerzhedovich


IgniteStatistic doesn't implement two methods from the base Statistic interface:
{code:java}
boolean isKey(ImmutableBitSet columns)

List<ImmutableBitSet> getKeys(){code}
We can provide this information to help a planner make better planes.
Need just provide information about PK columns to the class and implementation 
of the methods can be like a:
{code:java}
@Override
public boolean isKey(ImmutableBitSet columns) {
    return columns.contains(pkColumns.get(0));
}

@Override
public List<ImmutableBitSet> getKeys() {
    return pkColumns;
} {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to