[ 
https://issues.apache.org/jira/browse/HIVE-25880?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stamatis Zampetakis resolved HIVE-25880.
----------------------------------------
    Fix Version/s: 4.0.0
       Resolution: Fixed

Fixed in 
[b7eca8ab5280c5b59d473b8c5fd98be8da5c1195|https://github.com/apache/hive/commit/b7eca8ab5280c5b59d473b8c5fd98be8da5c1195].
 Thanks for the PR [~asolimando] !

> Add configuration option to exclude rules by a regex on their description
> -------------------------------------------------------------------------
>
>                 Key: HIVE-25880
>                 URL: https://issues.apache.org/jira/browse/HIVE-25880
>             Project: Hive
>          Issue Type: New Feature
>          Components: CBO
>    Affects Versions: 4.0.0
>            Reporter: Alessandro Solimando
>            Assignee: Alessandro Solimando
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> Introduce a configuration option to exclude rules via a regex on the rule 
> description, based on Calcite's 
> [org.apache.calcite.plan.AbstractRelOptPlanner#setRuleDescExclusionFilter|https://github.com/apache/calcite/blob/0065d7c179b98698f018f83b0af0845a6698fc54/core/src/main/java/org/apache/calcite/plan/AbstractRelOptPlanner.java#L186].
> The motivation is to provide a quick workaround when one or more rules are 
> causing issues at planning time, without code changes.
> Another use would be to quickly experiment on the impact of disabling one or 
> more rules on the compute plan.
> An example of configuration would be as follows:
> {code:java}
> set 
> hive.cbo.rule.exclusion.regex=HiveJoinPushTransitivePredicatesRule|HivePreFilteringRule;
> {code}
> The above configuration setting would exclude from planning both 
> _HiveJoinPushTransitivePredicatesRule_ and _HivePreFilteringRule_ rules.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to