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

In MATCH_RECOGNIZE, validator must ensure that arguments to a user-defined aggregate function come from a single pattern variable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      In MATCH_RECOGNIZE, validator must ensure that arguments to a user-defined aggregate function (UDAF) come from a single pattern variable.

      Query:

      SELECT *
      FROM Ticker
      MATCH_RECOGNIZE (
        ORDER BY proctime
        MEASURES
          udagg(A.price + B.tax) AS taxedPrice
        PATTERN (A B)
        DEFINE
          A AS A.symbol = 'a'
      ) AS T
      

      should fail with ValidationException, because udagg is applied to different pattern variables.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dwysakowicz Dawid Wysakowicz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: