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

PySpark Row - Support for row["columnName"] syntax

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.6.0
    • PySpark
    • None

    Description

      Right now you can get Row element:

      • by column name: row.columnName
      • by index: row[index] (where index is integer)

      My proposition is to add following syntax:
      row["columnName"]

      It will be solution similar to DataFrame behaviour and should be quite easy to implement with _getitem_ method.

      Attachments

        Issue Links

          Activity

            People

              yanbo YBL
              maver1ck Maciej BryƄski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: