Rajesh Balamohan created HIVE-22725:
---------------------------------------

             Summary: Lazy evaluate HiveMetastore::fireReadTablePreEvent table 
computation
                 Key: HIVE-22725
                 URL: https://issues.apache.org/jira/browse/HIVE-22725
             Project: Hive
          Issue Type: Improvement
            Reporter: Rajesh Balamohan


"TransactionalValidationListener" gets added in the pre-event listeners of HMS 
by default. 

[https://github.com/apache/hive/blob/master/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java#L559]

This causes issue in short select queries, as table details are computed for 
any partition lookups.

[https://github.com/apache/hive/blob/master/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java#L4984]

It would be good to lazy evaluate table lookup in this codepath.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to