Github user HyukjinKwon commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22597#discussion_r221546273
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/orc/OrcFilters.scala
 ---
    @@ -67,6 +67,16 @@ private[sql] object OrcFilters {
         }
       }
     
    +  // Since ORC 1.5.0 (ORC-323), we need to quote for column names with `.` 
characters
    +  // in order to distinguish predicate pushdown for nested columns.
    +  private def quoteAttributeNameIfNeeded(name: String) : String = {
    +    if (!name.contains("`") && name.contains(".")) {
    --- End diff --
    
    Does this condition take the backtick in column name into account? For 
instance,
    
    ```
    >>> spark.range(1).toDF("abc`.abc").show()
    +--------+
    |abc`.abc|
    +--------+
    |       0|
    +--------+
    ```


---

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

Reply via email to