[
https://issues.apache.org/jira/browse/CALCITE-1742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15959847#comment-15959847
]
Maryann Xue commented on CALCITE-1742:
--------------------------------------
Sorry, the description was a little inaccurate. In fact, I think the issue
exists in {{CalciteCatalogReader#getTableFrom}} which after calling
{{schema.getTable}}, it again calls {{schema.addTable}}. I suppose
{{schema.addTable}} is for adding so-called "explicit" tables but not for
caching table objects.
> Avoid caching sub-objects from CalciteSchema if caching is not enabled
> ----------------------------------------------------------------------
>
> Key: CALCITE-1742
> URL: https://issues.apache.org/jira/browse/CALCITE-1742
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.12.0
> Reporter: Maryann Xue
> Assignee: Maryann Xue
>
> We have two implementations of CalciteSchema, {{CachingCalciteSchema}} and
> {{SimpleCalciteSchema}}. There is still caching in the parent class
> {{CalciteSchema}}, though, that causes objects to be cached even if caching
> is not enabled (as in {{SimpleCalciteSchema}}).
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)