Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
SqlValidatorImpl.findTable() method contains code
String schemaName = names.get(0); String tableName = names.get(1); CalciteSchema schema = catalogReader.getRootSchema().getSubSchemaMap().get(schemaName); if (schema == null) { return null; } CalciteSchema.TableEntry entry = schema.getTable(tableName, catalogReader.nameMatcher().isCaseSensitive());
where names is a list with schema paths and table name.
For the cases when a table in the schema, which nested into another schema (schema1.schema2.table, etc), a required table could not be found.