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

Column.__getitem__ should support slice arguments

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.6.3, 2.1.0, 2.2.0
    • 2.2.0
    • PySpark, SQL
    • None

    Description

      PySpark Column uses __getslice__ as a synonym for substr. __getslice__ is deprecated in Python 2.0 (since 2.0) and has been removed in Python 3.

      If we want to support slicing notation it should be handled by __getitem__.

      Attachments

        Activity

          People

            zero323 Maciej Szymkiewicz
            zero323 Maciej Szymkiewicz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: