[
https://issues.apache.org/jira/browse/SPARK-12225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15049049#comment-15049049
]
Xiao Li edited comment on SPARK-12225 at 12/9/15 5:44 PM:
----------------------------------------------------------
[~rxin] We can call withColumn() multiple times for achieving the same
outcome. However, the cost is higher. I can understand the points of [~sunrui]
This sounds reasonable.
Sure, for better performance, the users can create a new dataFrame without
calling withColumn.
was (Author: smilegator):
[~rxin] We can call withColumn() multiple times for achieving the same
outcome. However, the cost is higher. I can understand the points of [~sunrui]
This sounds reasonable.
Sure, for better performance, the users should create a new dataFrame instead
of calling withColumn.
> Support adding or replacing multiple columns at once in DataFrame API
> ---------------------------------------------------------------------
>
> Key: SPARK-12225
> URL: https://issues.apache.org/jira/browse/SPARK-12225
> Project: Spark
> Issue Type: New Feature
> Components: SQL
> Affects Versions: 1.5.2
> Reporter: Sun Rui
>
> Currently, withColumn() method of DataFrame supports adding or replacing only
> single column. It would be convenient to support adding or replacing multiple
> columns at once.
> Also withColumnRenamed() supports renaming only single column.It would also
> be convenient to support renaming multiple columns at once.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]