-
Notifications
You must be signed in to change notification settings - Fork 5k
[feature][api-datasource]add redshift auth mode to get connection by access key #13379
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
[feature][api-datasource]add redshift auth mode to get connection by access key #13379
Conversation
| redshiftDatasourceParamDTO.setMode(connectionParams.getMode()); | ||
| redshiftDatasourceParamDTO.setDbUser(connectionParams.getDbUser()); | ||
| if (connectionParams.getMode().equals(RedshiftAuthMode.PASSWORD)) { | ||
| redshiftDatasourceParamDTO.setPort(Integer.parseInt(hostPortArray[0].split(Constants.COLON)[1])); |
Check notice
Code scanning / CodeQL
Missing catch of NumberFormatException
| if (hostPortArray[0].contains(Constants.COLON)) { | ||
| String portString = hostPortArray[0].split(Constants.COLON)[1]; | ||
| if (StringUtils.isNumeric(portString)) { | ||
| redshiftDatasourceParamDTO.setPort(Integer.parseInt(portString)); |
Check notice
Code scanning / CodeQL
Missing catch of NumberFormatException
Codecov Report
@@ Coverage Diff @@
## dev #13379 +/- ##
============================================
+ Coverage 39.46% 39.52% +0.06%
- Complexity 4308 4324 +16
============================================
Files 1083 1084 +1
Lines 40742 40916 +174
Branches 4670 4696 +26
============================================
+ Hits 16080 16174 +94
- Misses 22875 22938 +63
- Partials 1787 1804 +17
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
@Tianqi-Dotes please update the doc together. |
Amy0104
left a comment
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.
The front end part LGTM.
|
SonarCloud Quality Gate failed. |
Amy0104
left a comment
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.
The front end part LGTM.
caishunfeng
left a comment
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.
+1








Purpose of the pull request
add redshift auth mode to get connection by access key
#13039
Brief change log
Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(or)
If your pull request contain incompatible change, you should also add it to
docs/docs/en/guide/upgrede/incompatible.md