You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/10/12 12:53:00 UTC
[jira] [Work logged] (HIVE-26626) Cut dependencies between HiveXxPullUpConstantsRule and HiveReduceExpressionsRule
[ https://issues.apache.org/jira/browse/HIVE-26626?focusedWorklogId=816144&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-816144 ]
ASF GitHub Bot logged work on HIVE-26626:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 12/Oct/22 12:52
Start Date: 12/Oct/22 12:52
Worklog Time Spent: 10m
Work Description: zabetak opened a new pull request, #3665:
URL: https://github.com/apache/hive/pull/3665
### Why are the changes needed?
1. Reduce dependencies among rules
2. Avoid usage of deprecated methods
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Existing tests
Issue Time Tracking
-------------------
Worklog Id: (was: 816144)
Remaining Estimate: 0h
Time Spent: 10m
> Cut dependencies between HiveXxPullUpConstantsRule and HiveReduceExpressionsRule
> --------------------------------------------------------------------------------
>
> Key: HIVE-26626
> URL: https://issues.apache.org/jira/browse/HIVE-26626
> Project: Hive
> Issue Type: Task
> Components: CBO
> Reporter: Stamatis Zampetakis
> Assignee: Stamatis Zampetakis
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> HiveSortPullUpConstantsRule and HiveUnionPullUpConstantsRule are calling [predicateConstants|https://github.com/apache/hive/blob/8c3567ea8e423b202cde370f4d3fb401bcc23e46/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/rules/HiveSortPullUpConstantsRule.java#L128
> ] method from HiveReduceExpressionsRule.
> The method in HiveReduceExpressionsRule is deprecated and creates unnecessary dependencies among the rules. It can be replaced by a direct call to RexUtil.predicateConstants; the two methods are functionally equivalent.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)