You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2022/07/06 11:32:35 UTC

[GitHub] [hive] kasakrisz opened a new pull request, #3415: HIVE-26371: Constant propagation does not evaluate constraint expressions at merge when CBO is enabled

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: gitbox-unsubscribe@hive.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org


[GitHub] [hive] kasakrisz merged pull request #3415: HIVE-26371: Constant propagation does not evaluate constraint expressions at merge when CBO is enabled

Posted by GitBox <gi...@apache.org>.
kasakrisz merged PR #3415:
URL: https://github.com/apache/hive/pull/3415


-- 
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: gitbox-unsubscribe@hive.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org