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

Information about distinct aggregation is lost in MATCH_RECOGNIZE

    XMLWordPrintableJSON

Details

    Description

      There is no information that the COUNT aggregation is distinct in a plan for a query like e.g. this:

      SELECT *
      FROM MyTable
      MATCH_RECOGNIZE (
        MEASURES
          ....
        AFTER MATCH SKIP PAST LAST ROW
        PATTERN (A B+ C)
        DEFINE
          B AS COUNT(DISTINCT B.id) < 4
      ) AS T
      

      Attachments

        Issue Links

          Activity

            People

              danny0405 Danny Chen
              dwysakowicz Dawid Wysakowicz
              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 - 20m
                  20m