-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QueryCtx enhancement (Config + Session property) (V1 deprecated) #6846
Comments
@kewang1024 It definitely makes sense for Velox to see a single config entry for each use. |
So java doesn't not do merge technically, but session property's default value comes from config and would override the config value, so in some sense, it still merges. Thanks for the code pointer, I will keep this one in mind when I implement the above enhancement. |
The following questions are based on my understanding that the majority of work and design is related to Presto (if so, should a corresponding Presto issue be opened): If Java doesn't do the merge, somehow we would need to configure the coordinator not to validate these special Additionally, would these session properties be returned in the output of |
Yes, it would be returned in the output. As of now, we already have several native only session property, it's just not being used by Java. |
@kewang1024 I find it difficult to follow this discussion. Would it be possible to illustrate the problem and a proposed solution with some examples? |
My understanding is that some configuration properties cannot be modified at a query level and have to be fixed for the lifetime of the process. Do we have a proposal for how to handle these? |
Have bunch of questions also
are used to configure global Velox structures and not changed at query time. Its not clear how your proposal handles these.
|
Regarding connector config. |
Sure, one example is that we can have both config and session property passed in, but we actually only read one of it and ignore the other: |
|
I believe they would have different catalog names of same catalog type |
Only those variables that have both global and session scope will be merged. |
Version 2 of this enhancement: #7659 |
I had some discussion with @xiaoxmeng about the current velox config system and we're thinking of an enhancement:
Current problem
As of now, prestissimo wraps session properties into QueryCtx and pass it to velox for each query.
For connector configs read from config file
-they're passed in separately
-with duplicate configs.
For system config from config file, they're not passed in at all.
Such design makes the API complicated and confusing. We already saw misusage like passing a non-existing config.
Proposed solution
In the proposed solution, we will handle the translation logic in prestissimo layer and provide a clean API for velox to use.
Merge logic details
In the merge logic, it targets to:
Let me know what you guys think?
@mbasmanova, @majetideepak, @aditi-pandit, @amitkdutta, @spershin
The text was updated successfully, but these errors were encountered: