Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-26729 Add new UDFs to process Array type of data
  3. HIVE-28148

Implement array_compact UDF to remove all nulls from an array

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.1.0
    • Hive

    Description

      array_compact(array)

      Removes NULL elements from array.

       

      SELECT array_compact(array(1, 2, NULL, 3, NULL, 3));
      => [1, 2, 3, 3]
      

       

      Attachments

        Issue Links

          Activity

            People

              tarak271 Taraka Rama Rao Lethavadla
              tarak271 Taraka Rama Rao Lethavadla
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: