-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Implement getCatalogSessionProperties #5330
Conversation
19f2dbc
to
a35e64b
Compare
...perty-managers/src/main/java/io/prestosql/plugin/session/AbstractSessionPropertyManager.java
Show resolved
Hide resolved
...perty-managers/src/main/java/io/prestosql/plugin/session/AbstractSessionPropertyManager.java
Outdated
Show resolved
Hide resolved
e7af8ae
to
b8fe917
Compare
...perty-managers/src/main/java/io/prestosql/plugin/session/AbstractSessionPropertyManager.java
Show resolved
Hide resolved
...perty-managers/src/main/java/io/prestosql/plugin/session/AbstractSessionPropertyManager.java
Outdated
Show resolved
Hide resolved
...perty-managers/src/main/java/io/prestosql/plugin/session/AbstractSessionPropertyManager.java
Outdated
Show resolved
Hide resolved
...perty-managers/src/main/java/io/prestosql/plugin/session/AbstractSessionPropertyManager.java
Outdated
Show resolved
Hide resolved
b8fe917
to
f3b00b2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @rclaude, this looks good. Just a few minor comments.
...erty-managers/src/main/java/io/prestosql/plugin/session/file/FileSessionPropertyManager.java
Show resolved
Hide resolved
...perty-managers/src/main/java/io/prestosql/plugin/session/AbstractSessionPropertyManager.java
Outdated
Show resolved
Hide resolved
...erty-managers/src/test/java/io/prestosql/plugin/session/db/TestDbSessionPropertyManager.java
Outdated
Show resolved
Hide resolved
f3b00b2
to
302ab08
Compare
...perty-managers/src/main/java/io/prestosql/plugin/session/AbstractSessionPropertyManager.java
Show resolved
Hide resolved
...perty-managers/src/main/java/io/prestosql/plugin/session/AbstractSessionPropertyManager.java
Show resolved
Hide resolved
...erty-managers/src/test/java/io/prestosql/plugin/session/db/TestDbSessionPropertyManager.java
Show resolved
Hide resolved
c15237e
to
89339eb
Compare
I tried to rebase but still face ci errors that are unrelated with the PR, don't know how to go about that.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rebase and apply last comments. It looks like you hit #5427, hopefully after the rebase the issue won't appear again.
...erty-managers/src/test/java/io/prestosql/plugin/session/db/TestDbSessionPropertyManager.java
Outdated
Show resolved
Hide resolved
...erty-managers/src/test/java/io/prestosql/plugin/session/db/TestDbSessionPropertyManager.java
Outdated
Show resolved
Hide resolved
Create AbstractSessionPropertyManager to share common code in FileSessionPropertyManager and DbSessionPropertyManager
Use the convention that the first dot in a property name is a separator between a catalog name and a the catalog specific property name. Thus only return session properties with name containing no dot.
What: Add support for setting default catalog session properties in FileSessionPropertyManager and DbSessionPropertyManager How: Use the convention that the first dot in a property name is a separator between a catalog name and a the catalog specific property name
* Add default catalog property configuration example * Remove limitation section
Test empty catalog and proprety names: handled transparently and not filtered out Split SessionPropertyManagers testMultipleMatch * Keep testing assembling of session properties from different matcher in testMultipleMatch * Test "latter matcher override earlier ones" behavior for system and catalog properties in dedicated tests.
Got a green CI ! |
Merged, thanks! |
What: Add support for setting default catalog session properties in FileSessionPropertyManager & DbSessionPropertyManager
How: Use the convention that the first dot in a property name is a separator between a catalog name and a the catalog specific property name
This PR is a replacement for #5188