You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Chunhui Shi (JIRA)" <ji...@apache.org> on 2018/07/03 04:53:00 UTC

[jira] [Closed] (CALCITE-1748) Make CalciteCatalogReader.getSchema extendable to support dynamically load schema tree - getSchema need to be set to protected to allow overriding

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

Chunhui Shi closed CALCITE-1748.
--------------------------------
    Resolution: Fixed

> Make CalciteCatalogReader.getSchema extendable to support dynamically load schema tree - getSchema need to be set to protected to allow overriding
> --------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CALCITE-1748
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1748
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Chunhui Shi
>            Assignee: Julian Hyde
>            Priority: Major
>
> In system like Drill, there is a need to load partial schema (e.g. for only one storage plugin) only when needed. Since Drill has no way to get a full available schema tree before hand, nor could Drill cache available schema for a storage plugin(e.g. Hive, MongoDB) since the storage plugin may not have notification mechanism to update Schema tree timely.
>   
> The proposed fix is to load schema dynamically as shown in https://issues.apache.org/jira/browse/DRILL-5089
> To achieve this, we need to make CalciteCatalogReader.getSchema to be protected so it could be overridden by derived class while the derived class can reuse other functionalities in CalciteCatalogReader class
> private CalciteSchema getSchema(Iterable<String> schemaNames,
>       SqlNameMatcher nameMatcher) 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)