You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Michael Armbrust (JIRA)" <ji...@apache.org> on 2015/08/03 21:09:06 UTC
[jira] [Updated] (SPARK-6914) DataFrame.withColumn should take
metadata
[ https://issues.apache.org/jira/browse/SPARK-6914?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Armbrust updated SPARK-6914:
------------------------------------
Target Version/s: 1.6.0 (was: 1.5.0)
> DataFrame.withColumn should take metadata
> -----------------------------------------
>
> Key: SPARK-6914
> URL: https://issues.apache.org/jira/browse/SPARK-6914
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 1.3.0
> Reporter: Joseph K. Bradley
> Priority: Minor
>
> It would be nice if DataFrame.withColumn could take metadata. Currently (as far as I can tell), the best way to specify it is:
> {code}
> dataset.withColumn(columnName, newCol.as(columnName, myMetadata))
> {code}
> where "newCol" is a new column (in my use case, a column created by a UDF).
> This is weird since the columnName is specified twice.
--
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