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

Record DOT extension does not distinguish between simple and compound identifiers

    XMLWordPrintableJSON

    Details

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

      Description

      Currently the DOT extensions only supports Simple Identifiers:

      For example:

      • tbl.foo(0).col.bar is parsed as: ((`TBL`.`FOO`(0).`COL`).`BAR`)

      However, this is not the case in regular Expression field, for example:

      • tbl.col.bar is parsed as: `TBL`.`COL`.`BAR`

      Parser should support both compound identifier, and simple identifier chain after a record type SqlNode.

      Similarly, parsing should also be consistent for other types of expression, for example

      • tbl.arr[0].foo.bar is currently parsed as: ((`TBL`.`ARR`[0].`FOO`).`BAR`)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rongr Rong Rong
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: