Github user gatorsmile commented on the issue:

    https://github.com/apache/spark/pull/19602
  
    For such cases, 
    ```Scala
    CREATE TABLE test (value INT) PARTITIONED BY (dt STRING)
    SELECT * from test where dt=2017
    ```
    
    Can we just evaluate the right side `CAST(2017 as STRING)`, since it is 
foldable?



---

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

Reply via email to