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

DSL expressions fail on attribute with special characters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.5.0
    • SQL
    • None

    Description

      Expressions on implicitly converted attributes fail if the attributes have names containing special characters. They fail even if the attributes are backtick-quoted:

      scala> import org.apache.spark.sql.catalyst.dsl.expressions._
      import org.apache.spark.sql.catalyst.dsl.expressions._
      
      scala> "`slashed/col`".attr
      res0: org.apache.spark.sql.catalyst.analysis.UnresolvedAttribute = 'slashed/col
      
      scala> "`slashed/col`".attr.asc
      org.apache.spark.sql.catalyst.parser.ParseException:
      mismatched input '/' expecting {<EOF>, '.', '-'}(line 1, pos 7)
      
      == SQL ==
      slashed/col
      -------^^^
      

      Attachments

        Activity

          People

            rshkv Willi Raschkowski
            rshkv Willi Raschkowski
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: