Daniel Barclay (Drill) created DRILL-3473:
---------------------------------------------
Summary: No check for duplicate schema name from storage plug-ins
Key: DRILL-3473
URL: https://issues.apache.org/jira/browse/DRILL-3473
Project: Apache Drill
Issue Type: Bug
Reporter: Daniel Barclay (Drill)
There doesn't seem to be any check and warning for the case in which two
storage plug-in configuration/instances register schemas with the same name.
(Although that case probably doesn't occur with current plug-ins, which seem to
use the already-unique plug-in configuration name as the schema name, it could
occur with future plug-ins (either if no specification of plug-ins disallows it
or if the plug-in writer makes an error).
The problem seems to be that Calcite's SimpleCalciteSchema.add(...) doesn't
check for duplicates (and/or that Drill doesn't wrap something enough to
provide that duplicate check for plugins, or maybe that Drill doesn't specify
which code (each plug-in adding a schema?) has responsibility for checking).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)