You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Peter Vary (Jira)" <ji...@apache.org> on 2022/04/26 08:43:00 UTC

[jira] [Resolved] (HIVE-26171) HMSHandler get_all_tables method can not retrieve tables from remote database

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

Peter Vary resolved HIVE-26171.
-------------------------------
    Resolution: Fixed

Pushed to master.
Thanks for the patch [~zhangbutao]!

> HMSHandler get_all_tables method can not retrieve tables from remote database
> -----------------------------------------------------------------------------
>
>                 Key: HIVE-26171
>                 URL: https://issues.apache.org/jira/browse/HIVE-26171
>             Project: Hive
>          Issue Type: Bug
>          Components: Standalone Metastore
>    Affects Versions: 4.0.0-alpha-1, 4.0.0-alpha-2
>            Reporter: zhangbutao
>            Assignee: zhangbutao
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0-alpha-2
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> At present, get_all_tablesĀ  method in HMSHandler would not get table from remote database. However, other component like presto and some jobs we developed have used this api instead of _get_tables_ which could retrieve all tables both native database and remote database .
> {code:java}
> // get_all_tables only can get tables from native database
> public List<String> get_all_tables(final String dbname) throws MetaException {{code}
> {code:java}
> // get_tables can get tables from both native and remote database
> public List<String> get_tables(final String dbname, final String pattern){code}
> I think we shoud fix get_all_tables to make it retrive tables from remote database.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)