Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-23244

Sql. Provide information about PK to planner through statistics

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • sql
    • Docs Required, Release Notes Required

    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

      Attachments

        Activity

          People

            Unassigned Unassigned
            jooger Iurii Gerzhedovich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: