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

JSON_ARRAY() with no arguments does not unparse correctly

    XMLWordPrintableJSON

Details

    Description

      The following expression "json_array()" is compiled by the SqlOperatorTest into the following query:

      select json_array() from (values (1)) as t(p0)
      

      Parsing and unparsing this query generates the following incorrect SQL:

      SELECT JSON_ARRAY(ABSENT ON NULL)
      FROM (VALUES ROW(1)) AS "T" ("P0")
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mbudiu Mihai Budiu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: