Skip to content
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

Merged
merged 2 commits into from
Sep 6, 2020

Conversation

Praveen2112
Copy link
Member

Similar to session property we can allow table properties to be configured when creating tables for JDBC based connector

@cla-bot cla-bot bot added the cla-signed label Aug 28, 2020
@@ -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)
Copy link
Member

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about tablePropertiesBinder?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed it as bindTablePropertiesProvider

Copy link
Member

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)
Copy link
Member

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 @@
*/
Copy link
Member

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.

Copy link
Member Author

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)

@Praveen2112 Praveen2112 force-pushed the phoenix_table_properties branch 3 times, most recently from 98c8e83 to faba41c Compare August 31, 2020 13:38
@Praveen2112 Praveen2112 requested a review from kokosing August 31, 2020 17:33
@Praveen2112 Praveen2112 force-pushed the phoenix_table_properties branch from faba41c to 53f8378 Compare September 5, 2020 10:56
@Praveen2112 Praveen2112 merged commit 111fd3d into trinodb:master Sep 6, 2020
@Praveen2112 Praveen2112 deleted the phoenix_table_properties branch September 6, 2020 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants