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

Support named ROW in Flink SQL

    XMLWordPrintableJSON

Details

    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

          There are no Sub-Tasks for this issue.

          Activity

            People

              Unassigned Unassigned
              suez1224 Shuyi Chen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: