wangyum commented on pull request #30222:
URL: https://github.com/apache/spark/pull/30222#issuecomment-722957043


   Sorry. This change has logic issue, for example:
   ```scala
   spark.sql("CREATE TABLE t using parquet AS SELECT if(id % 2 = 7, null, id) 
AS a FROM range(7)")
   spark.sql(
     """
       |SELECT *
       |  FROM   (SELECT CASE
       |    WHEN a > 1 THEN 1
       |    WHEN a > 3 THEN 3
       |    WHEN a > 5 THEN 5
       |    ELSE 6
       |END AS x
       |FROM t ) t1
       |WHERE x = 3
       |""".stripMargin).show
   ```
   Before this pr, the result is empty, after this pr, the result is not empty.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to