You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (JIRA)" <ji...@apache.org> on 2015/04/14 10:44:12 UTC

[jira] [Updated] (SPARK-6898) Special chars in column names is broken

     [ https://issues.apache.org/jira/browse/SPARK-6898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wenchen Fan updated SPARK-6898:
-------------------------------
    Description: 
This function is added a long time ago, but it's not complete, it will fail if we have "." inside column name.

test("SPARK-3483 Special chars in column names") {
    val data = sparkContext.parallelize(
      Seq("""{"key?number1": "value1", "key.number2": "value2"}"""))
    jsonRDD(data).registerTempTable("records")
    sql("SELECT `key?number1`, `key.number2` FROM records")
  }

this test will fail.

  was:
This function is added a long time ago, but it's not complete, it will fail if we have "." inside column name.
{
test("SPARK-3483 Special chars in column names") {
    val data = sparkContext.parallelize(
      Seq("""{"key?number1": "value1", "key.number2": "value2"}"""))
    jsonRDD(data).registerTempTable("records")
    sql("SELECT `key?number1`, `key.number2` FROM records")
  }
}
this test will fail.


> Special chars in column names is broken
> ---------------------------------------
>
>                 Key: SPARK-6898
>                 URL: https://issues.apache.org/jira/browse/SPARK-6898
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Wenchen Fan
>
> This function is added a long time ago, but it's not complete, it will fail if we have "." inside column name.
> test("SPARK-3483 Special chars in column names") {
>     val data = sparkContext.parallelize(
>       Seq("""{"key?number1": "value1", "key.number2": "value2"}"""))
>     jsonRDD(data).registerTempTable("records")
>     sql("SELECT `key?number1`, `key.number2` FROM records")
>   }
> this test will fail.



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