unical1988 created SPARK-35038:
----------------------------------

             Summary: org.apache.spark.sql.AnalysisException: Resolved 
attribute(s) colName#390 missing from listofcolumns
                 Key: SPARK-35038
                 URL: https://issues.apache.org/jira/browse/SPARK-35038
             Project: Spark
          Issue Type: Bug
          Components: Build, SQL
    Affects Versions: 3.1.1
            Reporter: unical1988


I create a column to exchange an existing one in my dataframe using
{code:java}
withColumn {code}
like so : 
{noformat}
Dataset<Row> df2 = spark.createDataset(data, 
Encoders.DOUBLE()).toDF("colName1");
datasetRow.withColumn("colName1",df2.col("colName1"));{noformat}
But the last line of code is yielding the following : 

org.apache.spark.sql.AnalysisException: Resolved attribute(s) colName1#390 
missing from ...

Why ?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to