You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Jayadevan M (JIRA)" <ji...@apache.org> on 2017/02/08 17:04:41 UTC

[jira] [Commented] (SPARK-19473) Several DataFrame Methods still fail with dot in column names

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

Jayadevan M commented on SPARK-19473:
-------------------------------------

I think this is a duplicate jira - https://issues.apache.org/jira/browse/SPARK-13197. This issue already discussed and closed.

> Several DataFrame Methods still fail with dot in column names 
> --------------------------------------------------------------
>
>                 Key: SPARK-19473
>                 URL: https://issues.apache.org/jira/browse/SPARK-19473
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.1.0
>            Reporter: Wayne Zhang
>
> Here is an example:
> {code}
> val df = Seq((1.0, 2.0), (2.0, 3.0)).toDF("y.a", "x.b")
> df.select("y.a")
> org.apache.spark.sql.AnalysisException: cannot resolve '`y.a`' given input columns: [y.a, x.b];;
> df.withColumn("d", col("y.a") + col("x.b"))
> org.apache.spark.sql.AnalysisException: cannot resolve '`y.a`' given input columns: [y.a, x.b];;
> {code}
> We can use backquote to avoid the errors, but this behavior is affecting some downstream work such as RFormula and SparkR. 



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