Skip to content

Conversation

@hantmac
Copy link
Contributor

@hantmac hantmac commented Apr 4, 2023

Purpose of the pull request

Add databend datasource in datasource plugin and close #13857

@hantmac hantmac requested a review from songjianet as a code owner April 6, 2023 06:31
@github-actions github-actions bot added the UI ui and front end related label Apr 6, 2023
@EricGao888 EricGao888 added 3.2.0 for 3.2.0 version miss:docs missing documents in PR labels Apr 6, 2023
@EricGao888 EricGao888 added this to the 3.2.0 milestone Apr 6, 2023
Copy link
Member

@EricGao888 EricGao888 left a comment

Choose a reason for hiding this comment

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

Could u plz add related docs? Thx : )

@hantmac hantmac requested a review from EricGao888 April 10, 2023 14:01
@EricGao888 EricGao888 added the first time contributor First-time contributor label Apr 11, 2023
Copy link
Member

@EricGao888 EricGao888 left a comment

Choose a reason for hiding this comment

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

Backend part LGTM, would u like to double check? @SbloodyS @caishunfeng

@EricGao888 EricGao888 added the feature new feature label Apr 11, 2023
@codecov-commenter
Copy link

codecov-commenter commented Apr 11, 2023

Codecov Report

Merging #13866 (ec09f1b) into dev (fba47b3) will increase coverage by 0.02%.
The diff coverage is 71.42%.

❗ Current head ec09f1b differs from pull request most recent head 8155a6a. Consider uploading reports for the commit 8155a6a to get more accurate results

@@             Coverage Diff              @@
##                dev   #13866      +/-   ##
============================================
+ Coverage     38.92%   38.94%   +0.02%     
- Complexity     4470     4488      +18     
============================================
  Files          1164     1170       +6     
  Lines         42445    42506      +61     
  Branches       4761     4762       +1     
============================================
+ Hits          16520    16556      +36     
- Misses        24105    24128      +23     
- Partials       1820     1822       +2     
Impacted Files Coverage Δ
...eduler/api/service/impl/DataSourceServiceImpl.java 49.40% <ø> (ø)
...cheduler/common/constants/DataSourceConstants.java 0.00% <ø> (ø)
.../datasource/databend/DatabendDataSourceClient.java 0.00% <0.00%> (ø)
.../org/apache/dolphinscheduler/spi/enums/DbType.java 0.00% <0.00%> (ø)
...olphinscheduler/plugin/task/api/TaskConstants.java 60.00% <ø> (ø)
...dolphinscheduler/plugin/task/datax/DataxUtils.java 0.00% <0.00%> (ø)
...inscheduler/server/worker/config/WorkerConfig.java 3.84% <0.00%> (ø)
...datasource/databend/DatabendDataSourceChannel.java 50.00% <50.00%> (ø)
...rce/databend/DatabendDataSourceChannelFactory.java 66.66% <66.66%> (ø)
...ce/databend/param/DatabendDataSourceProcessor.java 80.43% <80.43%> (ø)
... and 2 more

... and 3 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more


String[] hostSeperator = connectionParams.getAddress().split(Constants.DOUBLE_SLASH);
String[] hostPortArray = hostSeperator[hostSeperator.length - 1].split(Constants.COMMA);
databendDatasourceParamDTO.setPort(Integer.parseInt(hostPortArray[0].split(Constants.COLON)[1]));

Check notice

Code scanning / CodeQL

Missing catch of NumberFormatException

Potential uncaught 'java.lang.NumberFormatException'.
davidzollo
davidzollo previously approved these changes Apr 17, 2023
Copy link
Contributor

@davidzollo davidzollo left a comment

Choose a reason for hiding this comment

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

+1
LGTM

@fuchanghai
Copy link
Member

Hi @hantmac Can you do some tests related to parsing parameters? as follows
image

@hantmac
Copy link
Contributor Author

hantmac commented Apr 19, 2023

Hi @hantmac Can you do some tests related to parsing parameters? as follows image

Of course.

Copy link
Member

@fuchanghai fuchanghai left a comment

Choose a reason for hiding this comment

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

looking forward to perfecting simple parsing parameter tests

@hantmac
Copy link
Contributor Author

hantmac commented Apr 20, 2023

I have run ./mvnw spotless:apply and ./mvnw spotless:check locally and successful, why the CI has this kind of error?

@hantmac
Copy link
Contributor Author

hantmac commented Apr 22, 2023

looking forward to perfecting simple parsing parameter tests

Hi bro, Would u like to help me review the tests ❤?

@fuchanghai
Copy link
Member

@SbloodyS it doesn't look like a problem with the code ,plz rerun CI

image

@WUWEI111222333
Copy link

LGTM,I am waiting for this

caishunfeng
caishunfeng previously approved these changes Apr 24, 2023
Copy link
Contributor

@caishunfeng caishunfeng left a comment

Choose a reason for hiding this comment

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

LGTM

fuchanghai
fuchanghai previously approved these changes Apr 24, 2023

## Native Supported

Yes, could use this datasource by default.
Copy link
Member

Choose a reason for hiding this comment

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

Chinese and English version is different?

Copy link
Member

Choose a reason for hiding this comment

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

should also add new docs in

{
title: 'SSH',
link: '/zh-cn/docs/dev/user_doc/guide/datasource/ssh.html',
},
and
{
title: 'SSH',
link: '/en-us/docs/dev/user_doc/guide/datasource/ssh.html',
},

Copy link
Member

Choose a reason for hiding this comment

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

should also add new docs in

{
title: 'SSH',
link: '/zh-cn/docs/dev/user_doc/guide/datasource/ssh.html',
},

and

{
title: 'SSH',
link: '/en-us/docs/dev/user_doc/guide/datasource/ssh.html',
},

we need to add some ci for it, or change our website template

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Add this line for databend but where is the content of /en-us/docs/dev/user_doc/guide/datasource/ssh.html?

Copy link
Member

Choose a reason for hiding this comment

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

it will auto-generated during website build, from markdown to html

@zhongjiajie
Copy link
Member

@devosend and @calvinjiang do you have time to take a look the frontend part?

@hantmac hantmac dismissed stale reviews from fuchanghai and caishunfeng via 7724715 April 24, 2023 12:43
zhongjiajie
zhongjiajie previously approved these changes Apr 24, 2023
Copy link
Member

@zhongjiajie zhongjiajie left a comment

Choose a reason for hiding this comment

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

LGTM, waiting for CI, BTW, databend is good, I had watch it for a while

@zhongjiajie
Copy link
Member

spotless failed, please run mvn spotless:apply locally and commit again

@zhongjiajie
Copy link
Member

I had update it by myself

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 18 Code Smells

74.2% 74.2% Coverage
0.0% 0.0% Duplication

@zhongjiajie zhongjiajie merged commit db6c061 into apache:dev Apr 24, 2023
@hantmac
Copy link
Contributor Author

hantmac commented Apr 24, 2023

Thanks all of you!

@alextinng
Copy link
Contributor

does connectionParams contains plaintext password?

863d8481fa97325dc2f7d95dc3a04d2

@hantmac
Copy link
Contributor Author

hantmac commented Apr 26, 2023

does connectionParams contains plaintext password?

863d8481fa97325dc2f7d95dc3a04d2

Yes, you can get the password using the code

        DatabendDataSourceParamDTO databendDataSourceParamDTO = new DatabendDataSourceParamDTO();
        databendDataSourceParamDTO.setHost("localhost");
        databendDataSourceParamDTO.setDatabase("default");
        databendDataSourceParamDTO.setUserName("root");
        databendDataSourceParamDTO.setPort(8000);
        databendDataSourceParamDTO.setPassword("123456");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.2.0 for 3.2.0 version backend document feature new feature first time contributor First-time contributor UI ui and front end related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature][Data source] Support Databend to DolphinScheduler Datasource