[
https://issues.apache.org/jira/browse/SPARK-15920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sean Owen reopened SPARK-15920:
-------------------------------
Yeah let's reopen this to make it about correcting the docs. I see in the link
above that {{teenagers = spark.sql("SELECT name FROM people")}} produces a
DataFrame contrary to the comment, and the map method doesn't exist for
DataFrame. Do you see other instances? feel free to open a PR.
> Using map on DataFrame
> ----------------------
>
> Key: SPARK-15920
> URL: https://issues.apache.org/jira/browse/SPARK-15920
> Project: Spark
> Issue Type: Bug
> Components: Documentation, 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: [email protected]
For additional commands, e-mail: [email protected]