Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
None
-
None
-
None
Description
Now once we configure Drill with more than one StoragePlugins, it will apply all the plugins's rules to user's queries even the queries not contain corresponding storage plugin. The reason is the method below of QueryContext
public StoragePluginRegistry getStorage() { return drillbitContext.getStorage(); }
From QueryContext's name , the method should return the query involved storage plugin registry not all the configured storage plugins.
So we need to identify the involved storage plugin at the parse stage, and set the collected involved storage plugins to the QueryContext. This will also benefit the work to do a schema level security control. Maybe a new method with the name getInvolvedStorage will be more accurate.