[
https://issues.apache.org/jira/browse/FLINK-5570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15886524#comment-15886524
]
Haohui Mai commented on FLINK-5570:
-----------------------------------
Thanks [~fhueske] for the pointer. Just took a very quick skim -- if I
understand correctly, [#3409|https://github.com/apache/flink/pull/3409] allows
other users to manipulate the catalogs within Flink.
This is different from having a Metastore-like API that gives the statistics of
the tables. Personally I think it might make sense to look into both issues
holistically and come up with a design that works well with both the Metastore
and HCatalog use cases.
> Support register external catalog to table environment
> ------------------------------------------------------
>
> Key: FLINK-5570
> URL: https://issues.apache.org/jira/browse/FLINK-5570
> Project: Flink
> Issue Type: Sub-task
> Components: Table API & SQL
> Reporter: Kurt Young
> Assignee: jingzhang
>
> This issue aims to support register one or more {{ExternalCatalog}} (which is
> referred in https://issues.apache.org/jira/browse/FLINK-5568) to
> {{TableEnvironment}}. After registration, SQL and TableAPI queries could
> access to tables in the external catalogs without register those tables one
> by one to {{TableEnvironment}} beforehand.
> We plan to add two APIs in {{TableEnvironment}}:
> 1. register externalCatalog
> {code}
> def registerExternalCatalog(name: String, externalCatalog: ExternalCatalog):
> Unit
> {code}
> 2. scan a table from registered catalog and returns the resulting {{Table}},
> the API is very useful in TableAPI queries.
> {code}
> def scan(catalogName: String, tableIdentifier: TableIdentifier): Table
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)