kasakrisz opened a new pull request, #3415:
URL: https://github.com/apache/hive/pull/3415

   ### What changes were proposed in this pull request?
   Enable constant propagation for merge statments after predicate push down 
even if CBO succeeded.
   
   ### Why are the changes needed?
   CBO can not handle merge statements and enforce constraint call is added 
after CBO. This case the constant propagator delivered by Hive is called only 
with the option `ConstantPropagateOption.SHORTCUT` but with this setting the 
algorithm does not evaluate deterministic functions like `BETWEEN`.
   As a result constraint checks having expressions with constants are also 
evaluated at execution time only.
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   ### How was this patch tested?
   ```
   mvn test -Dtest.output.overwrite -Dtest=TestNegativeLlapCliDriver 
-Dqfile=check_merge.q -pl itests/qtest -Pitests
   ```


-- 
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.

To unsubscribe, e-mail: [email protected]

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