Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-6116 DataFrame API improvement umbrella ticket (Spark 1.5)
  3. SPARK-7133

Implement struct, array, and map field accessor using apply in Scala and __getitem__ in Python

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 1.4.0
    • SQL
    • None
    • Spark 1.5 doc/QA sprint

    Description

      Typing

      df.col[1]
      

      and

      df.col['field']
      

      is so much eaiser than

      df.col.getField('field')
      df.col.getItem(1)
      

      This would require us to define (in Column) an apply function in Scala, and a _getitem_ function in Python.

      Attachments

        Issue Links

          Activity

            People

              cloud_fan Wenchen Fan
              rxin Reynold Xin
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: