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

[jira] [Resolved] (HIVE-25670) Avoid getTable() calls for foreign key tables not used in a query

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

Zoltan Haindrich resolved HIVE-25670.
-------------------------------------
    Fix Version/s: 4.0.0
       Resolution: Fixed

merged into master. Thank you [~scarlin] !

> 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
>             Fix For: 4.0.0
>
>          Time Spent: 1h 20m
>  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.20.1#820001)