Stamatis Zampetakis created HIVE-28376:
------------------------------------------

             Summary: 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


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)

Reply via email to