You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "holdenk (JIRA)" <ji...@apache.org> on 2017/02/13 23:25:41 UTC

[jira] [Resolved] (SPARK-19429) Column.__getitem__ should support slice arguments

     [ https://issues.apache.org/jira/browse/SPARK-19429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

holdenk resolved SPARK-19429.
-----------------------------
       Resolution: Fixed
    Fix Version/s: 2.2.0

Issue resolved by pull request 16771
[https://github.com/apache/spark/pull/16771]

> Column.__getitem__ should support slice arguments
> -------------------------------------------------
>
>                 Key: SPARK-19429
>                 URL: https://issues.apache.org/jira/browse/SPARK-19429
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark, SQL
>    Affects Versions: 1.6.3, 2.1.0, 2.2.0
>            Reporter: Maciej Szymkiewicz
>            Priority: Minor
>             Fix For: 2.2.0
>
>
> 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\_\_}}.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org