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

No exception when ambiguous column reference defined in PARTITION BY and MEASURES clause

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      Query:

      SELECT *
      FROM MyTable
      MATCH_RECOGNIZE (
        PARTITION BY id
        ORDER BY proctime
        MEASURES
          A.id AS id
        PATTERN (A)
        DEFINE
          A AS name = 'a'
      ) AS T
      

      should fail because of ambiguous id column.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: