You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/04/30 10:30:24 UTC

[GitHub] [spark] peter-toth opened a new pull request #24495: [SPARK-27604][SQL] Enhance constant propagation to constraint propagation

peter-toth opened a new pull request #24495: [SPARK-27604][SQL] Enhance constant propagation to constraint propagation
URL: https://github.com/apache/spark/pull/24495
 
 
   ## What changes were proposed in this pull request?
   
   This PR improves constant propagation to constraint propagation and implements these kind of expression simplifications:
   ```
   SELECT * FROM table WHERE i <= 5 AND i = 5        => SELECT * FROM table WHERE i = 5
   SELECT * FROM table WHERE i < j AND ... AND i > j => SELECT * FROM table WHERE false
   ```
   
   ## How was this patch tested?
   
   Existing and new UTs.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

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