Description
It would be nice if DataFrame.withColumn could take metadata. Currently (as far as I can tell), the best way to specify it is:
dataset.withColumn(columnName, newCol.as(columnName, myMetadata))
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.
Attachments
Issue Links
- is duplicated by
-
SPARK-9929 support adding metadata in withColumn
- Resolved