[
https://issues.apache.org/jira/browse/FLINK-5570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15925729#comment-15925729
]
Fabian Hueske commented on FLINK-5570:
--------------------------------------
Hi [~wheat9], the issue is actually about adding an interface to connect to
external catalogs. HCatalog or Metastore could be one of these catalogs.
If you look at the PR #3406 (#3409 builds on the commits of #3406), you'll find
an interface {{ExternalCatalog}} that would need to be implemented for HCatalog
and act as a bridge between HCatalog and the Flink's catalog in Calcite. Do you
think the {{ExternalCatalog}} interface is sufficient to address your use case?
> 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)