paul-rogers commented on pull request #2251:
URL: https://github.com/apache/drill/pull/2251#issuecomment-881179890


   One more thought: it is not clear from the PR or design document *why* you 
need these changes, so I'm having to guess. I may be guessing wrong. Can you 
spell out the use case?
   
   For example, I could imagine that you need the persistent user options 
because you want to use the REST API, and that API does not have a persistent 
session, so options don't persist. As it turns out, someone kindly recently 
added the ability to pass along options on each query request. This is, in 
fact, how Impala works to avoid the need for session state. So, you can achieve 
the same result by keeping options on the client.
   
   Or, you can achieve the same result by adding a session concept to the REST 
API. Log in and get a session token back. Send that token on subsequent 
requests to identify the user and to key to a cached session object. The 
session ends after a timeout or on an explicit logout call.
   
   If the per-user plugins are to allow multi-tenant operation, then the 
problem is considerably more complex as much of Drill is not designed for that. 
(You'd want to secure query profiles, police resource usage, etc.) If it is to 
allow different users in the same organization to define their own plugins, 
then you have the sharing issue we discussed.
   
   In short, if you can explain your goals, we can perhaps help you find a 
workable solution that achieves the goals. Without knowing the goals, then I'm 
free to make up my own understanding of what you want...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to