You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Simeon Simeonov (JIRA)" <ji...@apache.org> on 2016/06/26 00:18:37 UTC
[jira] [Created] (SPARK-16210) DataFrame.drop(colName) fails if
another column has a period in its name
Simeon Simeonov created SPARK-16210:
---------------------------------------
Summary: DataFrame.drop(colName) fails if another column has a period in its name
Key: SPARK-16210
URL: https://issues.apache.org/jira/browse/SPARK-16210
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 1.6.1
Environment: Spark 1.6.1 on Databricks
Reporter: Simeon Simeonov
The following code fails with {{org.apache.spark.sql.AnalysisException: cannot resolve 'x.y' given input columns: [abc, x.y]}} because of the way {{drop()}} uses {{select()}} under the covers.
{code}
val rdd = sc.makeRDD("""{"x.y": 5, "abc": 10}""" :: Nil)
sqlContext.read.json(rdd).drop("abc")
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org