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

Map value constructor and Array value constructor unparsed incorrectly for HiveSqlDialect

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.37.0
    • 1.38.0
    • core

    Description

      The SQL:

      SELECT MAP['k1', 'v1', 'k2', 'v2'],ARRAY[1, 2, 3]

      Generate Hive SQL should be:

      SELECT MAP ('k1', 'v1', 'k2', 'v2'),ARRAY (1, 2, 3)

      But is:

      SELECT MAP['k1', 'v1', 'k2', 'v2'],ARRAY[1, 2, 3]

      Attachments

        Issue Links

          Activity

            People

              nobigo xiong duan
              nobigo xiong duan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: