Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5162

RelMdUniqueKeys can return more precise unique keys for Aggregate

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.31.0
    • None

    Description

      Currently, RelMdUniqueKeys always returns group by keys as the unique key. However, it can return more precise unique keys by looking through group by keys. For instance:

      select deptno, deptname, count(*) from dept group by deptno, deptname;

      RelMdUniqueKeys can return deptno as the unique key instead of (deptno, deptname) if deptno is unique.

      Attachments

        Issue Links

          Activity

            People

              Chunwei Lei Chunwei Lei
              Chunwei Lei Chunwei Lei
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m