Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-6898

Special chars in column names is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • SQL
    • None

    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.

      Attachments

        Issue Links

          Activity

            People

              cloud_fan Wenchen Fan
              cloud_fan Wenchen Fan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: