You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Navya Krishnappa (JIRA)" <ji...@apache.org> on 2017/02/03 06:25:51 UTC

[jira] [Created] (SPARK-19442) Unable to add column to the dataset using Dataset.WithColumn() api

Navya Krishnappa created SPARK-19442:
----------------------------------------

             Summary: 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