[ https://issues.apache.org/jira/browse/HIVE-25670?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated HIVE-25670: ---------------------------------- Labels: pull-request-available (was: ) > 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 > Priority: Major > Labels: pull-request-available > Time Spent: 10m > Remaining Estimate: 0h > > 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)