Github user gatorsmile commented on the issue:

    https://github.com/apache/spark/pull/18023
  
    Let me post a confusing error message.
    ```Scala
        withSQLConf(SQLConf.SUPPORT_QUOTED_REGEX_COLUMN_NAME.key -> "true") {
          Seq((1, 1)).toDF("key", "value").createOrReplaceTempView("test")
          sql("select `key` from test where `key` > 3").show()
        }
    ```
    
    The error message is:
    ```
    Invalid call to dataType on unresolved object, tree: key
    org.apache.spark.sql.catalyst.analysis.UnresolvedException: Invalid call to 
dataType on unresolved object, tree: key
        at 
org.apache.spark.sql.catalyst.analysis.Star.dataType(unresolved.scala:250)
        at 
org.apache.spark.sql.catalyst.expressions.BinaryOperator.checkInputDataTypes(Expression.scala:517)
        at 
org.apache.spark.sql.catalyst.analysis.CheckAnalysis$$anonfun$checkAnalysis$1$$anonfun$apply$2.applyOrElse(CheckAnalysis.scala:92)
    ```
    
    Users might use quoted attributes in any place of a query.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to