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

[FLINK-35176][Connector/JDBC] Support property authentication connection for JDBC catalog & dynamic table #116

Merged
merged 2 commits into from
May 7, 2024

Conversation

RocMarshal
Copy link
Contributor

  • Support property authentication connection for JDBC catalog & dynamic table

@RocMarshal RocMarshal changed the title [FLINK-33460][Connector/JDBC] Support property authentication connection for JDBC catalog & dynamic table [FLINK-35176][Connector/JDBC] Support property authentication connection for JDBC catalog & dynamic table Apr 20, 2024
@RocMarshal RocMarshal marked this pull request as ready for review April 23, 2024 10:28
@RocMarshal
Copy link
Contributor Author

blocked by #115

@RocMarshal
Copy link
Contributor Author

HI, @caicancai @GOODBOY008 Could you help have a review if you had the free time ? thx a lot.

@RocMarshal RocMarshal closed this Apr 26, 2024
@RocMarshal RocMarshal reopened this Apr 26, 2024
Copy link
Member

@caicancai caicancai left a comment

Choose a reason for hiding this comment

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

LGTM

@RocMarshal
Copy link
Contributor Author

Thanks @caicancai for the review.
Could @1996fanrui you help take a look if you had the free time ?
Thank you~

@RocMarshal
Copy link
Contributor Author

Hi, @eskabetxe Would you mind having take a look if you had the free time ? Many thx!

this.baseUrl = baseUrl.endsWith("/") ? baseUrl : baseUrl + "/";
this.defaultUrl = this.baseUrl + defaultDatabase;
this.connectionProperties = Preconditions.checkNotNull(connectionProperties);
if (StringUtils.isNullOrWhitespaceOnly(connectionProperties.getProperty(USER_KEY))) {
Copy link
Member

Choose a reason for hiding this comment

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

we should maintain the current checks

checkArgument(!StringUtils.isNullOrWhitespaceOnly(connectionProperties.getProperty(USER_KEY)));
checkArgument(!StringUtils.isNullOrWhitespaceOnly(connectionProperties.getProperty(PASSWORD_KEY)));

@RocMarshal RocMarshal requested a review from eskabetxe May 3, 2024 05:07
@RocMarshal
Copy link
Contributor Author

Thanks @eskabetxe for the comments. Updated.

Copy link
Member

@eskabetxe eskabetxe left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@1996fanrui 1996fanrui left a comment

Choose a reason for hiding this comment

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

Thanks @RocMarshal for the contribution, and @eskabetxe @caicancai for the review!

Merging~

@1996fanrui 1996fanrui merged commit a9135f9 into apache:main May 7, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants