You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Joseph K. Bradley (JIRA)" <ji...@apache.org> on 2015/08/14 00:44:46 UTC

[jira] [Closed] (SPARK-6914) DataFrame.withColumn should take metadata

     [ https://issues.apache.org/jira/browse/SPARK-6914?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joseph K. Bradley closed SPARK-6914.
------------------------------------
    Resolution: Duplicate

> 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