Details
Description
IgniteStatistic doesn't implement two methods from the base Statistic interface:
boolean isKey(ImmutableBitSet columns)
List<ImmutableBitSet> getKeys()
We can provide this information to start using it during the planning phase.
Need just provide information about PK columns to the class and implementation of the methods can be like a:
@Override public boolean isKey(ImmutableBitSet columns) { return columns.contains(pkColumns.get(0)); } @Override public List<ImmutableBitSet> getKeys() { return pkColumns; }
Right now the methods used in RelMdColumnUniqueness and RelMdUniqueKeys