-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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][plugin] Support Kyuubi datasource #13642
Conversation
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 check the failed CI. Thanks.
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.
where did you use this parameter datawarehouse
?
will check later |
@zhaohehuhu CI failed by style check. Could u plz run |
import org.apache.dolphinscheduler.common.utils.PropertyUtils; | ||
import org.apache.dolphinscheduler.plugin.datasource.api.client.CommonDataSourceClient; | ||
import org.apache.dolphinscheduler.plugin.datasource.api.provider.JDBCDataSourceProvider; | ||
import org.apache.dolphinscheduler.plugin.datasource.kyuubi.security.*; |
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 avoid using wildcard imports
and fix it before running spotless cmd, or spotless will directly remove it and lead to compilation failure.
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.
got it
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.
fixed
OK |
fixed |
Codecov Report
@@ Coverage Diff @@
## dev #13642 +/- ##
============================================
+ Coverage 38.87% 38.91% +0.04%
- Complexity 4455 4476 +21
============================================
Files 1158 1164 +6
Lines 42429 42513 +84
Branches 4776 4780 +4
============================================
+ Hits 16496 16546 +50
- Misses 24118 24151 +33
- Partials 1815 1816 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
...c/main/java/org/apache/dolphinscheduler/plugin/datasource/kyuubi/KyuubiDataSourceClient.java
Fixed
Show fixed
Hide fixed
...c/main/java/org/apache/dolphinscheduler/plugin/datasource/kyuubi/KyuubiDataSourceClient.java
Fixed
Show fixed
Hide fixed
...c/main/java/org/apache/dolphinscheduler/plugin/datasource/kyuubi/KyuubiDataSourceClient.java
Fixed
Show fixed
Hide fixed
} | ||
hosts.deleteCharAt(hosts.length() - 1); | ||
kyuubiDataSourceParamDTO.setHost(hosts.toString()); | ||
kyuubiDataSourceParamDTO.setPort(Integer.parseInt(hostPortArray[0].split(Constants.COLON)[1])); |
Check notice
Code scanning / CodeQL
Missing catch of NumberFormatException
Hi All, what should I do next ? @EricGao888 @fuchanghai |
can you add related license? |
@zhaohehuhu You can refer to this #12379 |
Sure. |
@@ -43,7 +43,8 @@ public enum DbType { | |||
TRINO(12, "trino"), | |||
STARROCKS(13, "starrocks"), | |||
AZURESQL(14, "azuresql"), | |||
DAMENG(15, "dameng"); | |||
DAMENG(15, "dameng"), | |||
KYUUBI(18, "kyuubi"); |
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 not set 16
?
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 not set
16
?
cause 16 is occupied by other datasources implemented by ourselves
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.
how about use 17
?
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.
17 is used by ssh now
should be fixed. Please hep check it @fuchanghai |
|
fix kyuubi datasource doc remove indention
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 @zhaohehuhu, LGTM on my side
Thanks. Buddy. |
@SbloodyS plz help run CI |
Done. |
approval to run CI |
|
Hi All, what should I do next ? @EricGao888 @fuchanghai @Radeity |
Kudos, SonarCloud Quality Gate passed! |
Hi @EricGao888 @fuchanghai @Radeity, it seems there is no error anymore for this PR. |
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 on my side
Thanks all |
Purpose of the pull request
close #12535
This PR is to Introduce Kyuubi as datasource, so users can use Kyuubi as SQL proxy instead of Hive datasource, which can get more feature support powered by Kyuubi.
Brief change log
Verify this pull request
This pull request is code cleanup with some 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