You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Paul Rogers (JIRA)" <ji...@apache.org> on 2017/01/09 16:53:58 UTC
[jira] [Created] (DRILL-5181) Storage plugins have no visibility to
session options
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)