You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2016/07/22 12:19:20 UTC
[jira] [Updated] (SPARK-16651) Document no exception using
DataFrame.withColumnRenamed when existing column doesn't exist
[ https://issues.apache.org/jira/browse/SPARK-16651?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean Owen updated SPARK-16651:
------------------------------
Assignee: Dongjoon Hyun
Priority: Minor (was: Major)
Component/s: Documentation
Issue Type: Improvement (was: Bug)
Summary: Document no exception using DataFrame.withColumnRenamed when existing column doesn't exist (was: No exception using DataFrame.withColumnRenamed when existing column doesn't exist)
> Document no exception using DataFrame.withColumnRenamed when existing column doesn't exist
> ------------------------------------------------------------------------------------------
>
> Key: SPARK-16651
> URL: https://issues.apache.org/jira/browse/SPARK-16651
> Project: Spark
> Issue Type: Improvement
> Components: Documentation, PySpark
> Affects Versions: 1.5.0
> Reporter: Tom Phillips
> Assignee: Dongjoon Hyun
> Priority: Minor
>
> The {{withColumnRenamed}} method does not raise an exception when the existing column does not exist in the dataframe.
> Example:
> {code}
> In [4]: df.show()
> +---+-----+
> |age| name|
> +---+-----+
> | 1|Alice|
> +---+-----+
> In [5]: df = df.withColumnRenamed('dob', 'date_of_birth')
> In [6]: df.show()
> +---+-----+
> |age| name|
> +---+-----+
> | 1|Alice|
> +---+-----+
> {code}
--
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