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

Implement array_join udf to concatenate the elements of an array with a specified delimiter

    XMLWordPrintableJSON

Details

    Description

      array_join(array, delimiter, replaceNull) - concatenate the elements of an array with a specified delimiter
      Example:

      > SELECT array_join(array(1, 2, 3,4), ',') FROM src LIMIT 1;
      1,2,3,4
      > SELECT array_join(array(1, 2, NULL, 4), ',',':') FROM src LIMIT 1;
      1,2,:,4

      Returns NULL if array is null/empty

      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:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 10m
                  2h 10m