-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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-9467] add DAMENG DataSource #12860
Conversation
+ ", password='" + password + '\'' | ||
+ ", address='" + address + '\'' |
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.
IMHO, remove password
in toString()
should be better, this prevents the password from being printed to the log file. WDYT.
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 toString()
method of the OracleConnectionParam
、MySQLConnectionParam
class has the password attribute printed.I modified it according to the mysql and oracle specifications。Now I need to remove password
in toString()
?
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
toString()
method of theOracleConnectionParam
、MySQLConnectionParam
class has the password attribute printed.I modified it according to the mysql and oracle specifications。Now I need to removepassword
intoString()
?
Please remove all password
in those classes, also, consider use lombok
ToString(excludes =
to simplify the codes
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.
ok, I'll remove password
in toString()
+ ", password='" + password + '\'' | ||
+ ", address='" + address + '\'' |
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
toString()
method of theOracleConnectionParam
、MySQLConnectionParam
class has the password attribute printed.I modified it according to the mysql and oracle specifications。Now I need to removepassword
intoString()
?
Please remove all password
in those classes, also, consider use lombok
ToString(excludes =
to simplify the codes
…2、DmConnectionParam remove password in toString()
.../main/java/org/apache/dolphinscheduler/plugin/datasource/dm/param/DmDataSourceProcessor.java
Fixed
Show fixed
Hide fixed
…2、DmConnectionParam remove password in toString()
…ve testGetDmConnection method
good job |
|
1、modification package dm->dameng; 2、add Dameng DmJdbcDriver18 License
String address = connectionParams.getAddress(); | ||
String[] hostSeperator = address.split(Constants.DOUBLE_SLASH); | ||
String[] hostPortArray = hostSeperator[hostSeperator.length - 1].split(Constants.COMMA); | ||
damengDatasourceParamDTO.setPort(Integer.parseInt(hostPortArray[0].split(Constants.COLON)[1])); |
Check notice
Code scanning / CodeQL
Missing catch of NumberFormatException
# Conflicts: # dolphinscheduler-datasource-plugin/dolphinscheduler-datasource-all/pom.xml # dolphinscheduler-datasource-plugin/pom.xml # dolphinscheduler-dist/release-docs/LICENSE # dolphinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/enums/DbType.java # dolphinscheduler-ui/src/service/modules/data-source/types.ts # dolphinscheduler-ui/src/views/datasource/list/use-form.ts # dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-datasource.ts # tools/dependencies/known-dependencies.txt
<dependency> | ||
<groupId>com.alibaba</groupId> | ||
<artifactId>druid</artifactId> | ||
</dependency> | ||
</dependencies> |
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.
Why are you introducing a new database connection pool? we already have HikariCP
.
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.
HikariCP does not support Dameng, druid supports Dameng
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.
I don't understand, it's just a data source connector management, why doesn't it support dm, can you explain why?
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,I just tested the DaMeng database with HikariCP,HikariCP supports DaMeng
damengConnectionParam.setDriverClassName(getDatasourceDriver()); | ||
damengConnectionParam.setValidationQuery(getValidationQuery()); | ||
damengConnectionParam.setOther(transformOther(dmDatasourceParam.getOther())); | ||
damengConnectionParam.setProps(dmDatasourceParam.getOther()); |
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 don't use setProps
, I remember we don't have props in BaseDataSourceParamDTO
, you need to rebase the upstream code.
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.
Ok, I have rebase BaseDataSourceParamDTO
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.
LGTM, thanx for the efforts.
@@ -141,5 +141,6 @@ | |||
<groupId>com.zaxxer</groupId> | |||
<artifactId>HikariCP</artifactId> | |||
</dependency> | |||
|
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 remove unnessnary change.
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.
Ok, I'll remove the unnecessary changes right away
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
SonarCloud Quality Gate failed. |
Purpose of the pull request
Brief change log
Verify this pull request
#9467
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