Wayne Zhang created SPARK-19473:
-----------------------------------
Summary: Several DataFrame Method 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: [email protected]
For additional commands, e-mail: [email protected]