Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-6116 DataFrame API improvement umbrella ticket (Spark 1.5)
  3. SPARK-7551

Don't split by dot if within backticks for DataFrame attribute resolution

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 1.4.0
    • SQL
    • None
    • Spark 1.5 doc/QA sprint

    Description

      DataFrame's resolve:

        protected[sql] def resolve(colName: String): NamedExpression = {
          queryExecution.analyzed.resolve(colName.split("\\."), sqlContext.analyzer.resolver).getOrElse {
            throw new AnalysisException(
              s"""Cannot resolve column name "$colName" among (${schema.fieldNames.mkString(", ")})""")
          }
        }
      

      We should not split the parts quoted by backticks (`).

      For example, `ab.cd`.`efg` should be split into two parts "ab.cd" and "efg".

      Attachments

        Activity

          People

            cloud_fan Wenchen Fan
            rxin Reynold Xin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: