Julian Hyde created CALCITE-690:
-----------------------------------
Summary: Calcite must not call Schema.getTableNames if caching is
disabled
Key: CALCITE-690
URL: https://issues.apache.org/jira/browse/CALCITE-690
Project: Calcite
Issue Type: Bug
Reporter: Julian Hyde
Assignee: Julian Hyde
Calcite must not call {{Schema.getTableNames}} if caching is disabled. (That
is, if {{SchemaPlus.setCacheEnabled(false)}} has been called, or the mode has
{{cache: false}}.)
Currently {{CalciteSchema.getTable}} calls
{{implicitTableCache.get(now).contains(tableName)}} before it calls
{{schema.getTable(tableName)}}, and whether or not caching is enabled,
{{implicitTableCache}} will return a set of table names.
Schemas that do not wish to implement {{getTableNames}} (either because it is
slow or because it is impossible) should not have to. Similarly
{{getSubSchemaNames}} and {{getFunctionNames}}. And the same goes if table name
matching is case-insensitive.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)