Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-26826

Array indexing functions array_allpositions and array_select

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.4.0
    • Fix Version/s: None
    • Component/s: SQL
    • Labels:
      None

      Description

      This ticket proposes two extra array functions: array_allpositions (named after array_position) and array_select. These functions should make it easier to:

      • get an array of indices of all occurences of a value in an array (array_allpositions)
      • select all elements of an array based on an array of indices (array_select)

      Although higher-order functions, such as aggregate and transform, have been recently added, performing tasks above is still not simple, hence this addition.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                pzecevic Petar Zecevic
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: