You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Stamatis Zampetakis (Jira)" <ji...@apache.org> on 2024/08/07 11:25:00 UTC

[jira] [Resolved] (HIVE-28376) Remove unused Hive object from RelOptHiveTable

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

Stamatis Zampetakis resolved HIVE-28376.
----------------------------------------
    Fix Version/s: 4.1.0
       Resolution: Fixed

Fixed in [https://github.com/apache/hive/commit/59e8f0d9eac8fce6a0586ef1a3deef53a774c86a]

Thanks for the reviews [~simhadri-g] and [~kokila19] !

> Remove unused Hive object from RelOptHiveTable
> ----------------------------------------------
>
>                 Key: HIVE-28376
>                 URL: https://issues.apache.org/jira/browse/HIVE-28376
>             Project: Hive
>          Issue Type: Task
>          Components: CBO
>            Reporter: Stamatis Zampetakis
>            Assignee: Stamatis Zampetakis
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.1.0
>
>
> The [Hive|https://github.com/apache/hive/blob/b18d5732b4f309fdc3b8226847c9c1ebcd2476fd/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java] object is not used inside RelOptHiveTable so keeping a reference to it is wasting memory and also complicates creation of RelOptHiveTable objects (constructor parameter). 
> Moreover, the Hive objects have thread local scope so in general they shouldn't be passed around cause their lifecycle becomes harder to manage.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)