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

JSON_QUERY should return a well formatted nested objects/arrays for ARRAY<STRING>

    XMLWordPrintableJSON

Details

    Description

      SELECT JSON_QUERY('{"items": [{"itemId":1234, "count":10}]}', '$.items' RETURNING ARRAY<STRING>)
      

      returns

      ['{itemId=1234, count=10}']
      

      but it should:

      ['{"itemId":1234, "count":10}']
      

      We should call jsonize for Collection types here: https://github.com/apache/flink/blob/f6f88135b3a5fa5616fe905346e5ab6dce084555/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/SqlJsonUtils.java#L268

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: