Paul Rogers created DRILL-5181:
----------------------------------
Summary: Storage plugins have no visibility to session options
Key: DRILL-5181
URL: https://issues.apache.org/jira/browse/DRILL-5181
Project: Apache Drill
Issue Type: Improvement
Affects Versions: 1.8.0
Reporter: Paul Rogers
Storage plugins are defined as global constructs: they span multiple user
sessions.
Individual actions (table lookups, scan creation) operate within the context of
a single query operating within a specific user session.
The storage plugin API has no concept of session or query: all items are global
or highly local (ask for a table, but with no connection to session or query,
just a request without context.)
These semantics are fine for resources without permissions or state. But if a
plugin wants to provide session options, it cannot do so at plan time. If a
plugin wants to provide a user-specific view of the world, or wants to restrict
actions based on user identity, it cannot do so at plan time.
The workaround may be to give the planner "God" permissions, but enforce
specifics at execution time when the user and session information is known.
This does, however, prevent the planner from making use of user-specific
information.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)