-
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
Enable table properties for JDBC connectors #5012
Enable table properties for JDBC connectors #5012
Conversation
@@ -85,4 +85,14 @@ public static void bindProcedure(Binder binder, Class<? extends Provider<? exten | |||
{ | |||
procedureBinder(binder).addBinding().toProvider(type).in(Scopes.SINGLETON); | |||
} | |||
|
|||
public static Multibinder<TablePropertiesProvider> tablePropertiesProviderMultiBinder(Binder binder) |
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.
Remove Multi
from the name for consistency with bindSessionPropertiesProvider
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.
How about tablePropertiesBinder
?
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.
Renamed it as bindTablePropertiesProvider
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.
We have JdbcModule#sessionPropertiesProviderBinder
, so tablePropertiesProviderBinder
would be consistent.
@@ -85,4 +85,14 @@ public static void bindProcedure(Binder binder, Class<? extends Provider<? exten | |||
{ | |||
procedureBinder(binder).addBinding().toProvider(type).in(Scopes.SINGLETON); | |||
} | |||
|
|||
public static Multibinder<TablePropertiesProvider> tablePropertiesProviderMultiBinder(Binder binder) |
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.
How about tablePropertiesBinder
?
@@ -13,6 +13,8 @@ | |||
*/ |
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.
Minor cleanup in Phoenix connector
What kind of cleanup? Commit message is ambiguous. Can you please be more specific.
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.
Now we pass the table properties via JdbcClient
(PhoenixClient
)
98c8e83
to
faba41c
Compare
faba41c
to
53f8378
Compare
Similar to session property we can allow table properties to be configured when creating tables for JDBC based connector