You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Matthias Egli (JIRA)" <ji...@apache.org> on 2016/09/01 06:02:21 UTC

[jira] [Commented] (SPARK-15920) Using map on DataFrame

    [ https://issues.apache.org/jira/browse/SPARK-15920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15454430#comment-15454430 ] 

Matthias Egli commented on SPARK-15920:
---------------------------------------

[~srowen] Why was this ticket closed? The documentation of Spark 2.0 still has some examples of python code using .map directly on a DataFrame (e.g. here: https://spark.apache.org/docs/2.0.0/sql-programming-guide.html#inferring-the-schema-using-reflection). Also, the migration documentation does not state that the map functionality is not supported anymore on pyspark's DataFrame in Spark 2.0

> Using map on DataFrame
> ----------------------
>
>                 Key: SPARK-15920
>                 URL: https://issues.apache.org/jira/browse/SPARK-15920
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark
>    Affects Versions: 2.0.0
>         Environment: branch-2.0
>            Reporter: Piotr Milanowski
>
> In Spark 1.6 there was a method {{DataFrame.map}} as an alias to {{DataFrame.rdd.map}}. In spark 2.0 this functionality no longer exists.
> Is there a preferred way of doing map on a DataFrame without explicitly calling {{DataFrame.rdd.map}}? Maybe this functionality should be kept, just for backward compatibility purpose?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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