Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-8003

Support named ROW in Flink SQL

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Table SQL / API
    • Labels:
      None

      Description

      We want to use the row value constructor and CAST to create a named row, or even nested named row, e.g.

      CREATE TYPE myrowtype AS (f1 INTEGER, f2 VARCHAR(10))
      SELECT CAST(ROW(intField, "test") AS myrowtype) AS myRow FROM myTable;
      

      So if converted to JSON, the output will be

      {"myRow":{"f0": ${intField}, "f1":"test"}}
      

      .

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                suez1224 Shuyi Chen
                Reporter:
                suez1224 Shuyi Chen
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: