spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Navya Krishnappa (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (SPARK-19442) Unable to add column to the dataset using Dataset.WithColumn() api
Date Mon, 13 Feb 2017 05:30:41 GMT

    [ https://issues.apache.org/jira/browse/SPARK-19442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15863216#comment-15863216
] 

Navya Krishnappa edited comment on SPARK-19442 at 2/13/17 5:29 AM:
-------------------------------------------------------------------

Thank you for your response. 

I could able to derive a new column from the existing column. But my intention is to add a
new column.


was (Author: navya krishnappa):
Thank you for your response. 

It is working as expected. I could able to add a new column to the data set.

> Unable to add column to the dataset using Dataset.WithColumn() api
> ------------------------------------------------------------------
>
>                 Key: SPARK-19442
>                 URL: https://issues.apache.org/jira/browse/SPARK-19442
>             Project: Spark
>          Issue Type: Bug
>          Components: Java API
>    Affects Versions: 2.0.2
>            Reporter: Navya Krishnappa
>
> When I'm creating a new column using Dataset.WithColumn() api, Analysis Exception is
thrown.
> Dataset.WithColumn() api: 
> Dataset.withColumn("newColumnName', new org.apache.spark.sql.Column("newColumnName").cast("int"));
> Stacktrace: 
> cannot resolve '`NewColumn`' given input columns: [abc,xyz ]



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message