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

Add ARRAY_COMPACT for Spark dialect

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.35.0
    • 1.35.0
    • core

    Description

      array_compact(array) - Removes null values from the array.

      Examples:

       

      > SELECT array_compact(array(1, 2, 3, null));

      {{ [1,2,3]}}

      > SELECT array_compact(array("a", "b", "c"));

      {{ ["a","b","c"]}}

      Attachments

        Issue Links

          Activity

            People

              jackylau Jacky Lau
              jackylau Jacky Lau
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: