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

Implement array_slice UDF to get the subset of elements from an array (subarray)

    XMLWordPrintableJSON

Details

    Description

      array_slice(array, start, length) - Returns the subset or range of elements from an array (subarray).

      Example:
        

      > SELECT array_slice(array(1, 2, 3,4), 2,2) FROM src LIMIT 1;
      3,4

      Returns empty list if start/length are out of range of the array

      Attachments

        Issue Links

          Activity

            People

              tarak271 Taraka Rama Rao Lethavadla
              tarak271 Taraka Rama Rao Lethavadla
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 1h 40m
                  1h 40m