Steve Carlin created HIVE-25670:
-----------------------------------

             Summary: Avoid getTable() calls for foreign key tables not used in 
a query
                 Key: HIVE-25670
                 URL: https://issues.apache.org/jira/browse/HIVE-25670
             Project: Hive
          Issue Type: Improvement
          Components: HiveServer2
            Reporter: Steve Carlin


In RelOptHiveTable, we generate the referential constraints for the table. In 
this process, we make a metastore call to fetch these tables.  This is used 
later on for potential gain on joins done on the key.

However, there is no need to fetch these constraints if the table is not used 
in the query. If we can get this information up front, we can save a bit on 
compilation time.
 



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

Reply via email to