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

Enable complex expression in Column.getItem(...)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • 2.2.0
    • None
    • SQL

    Description

      Currently, the Column.getItem(...) method supports only String or number literals. However, one might want to provide a more complicated expression, such as get the item at the index specified by another column, or the item at an index which is specified by a UDF call. Currently, there is no way to do that.

      Creating an overload for the getItem(...) method which accepts a Column object can be one solution.

      Attachments

        Activity

          People

            Unassigned Unassigned
            deansg Dean Gurvitz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: