-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[Improvement][SQL Task]use default sql segment separator #10869
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #10869 +/- ##
============================================
- Coverage 39.05% 39.04% -0.01%
+ Complexity 4079 4078 -1
============================================
Files 1010 1010
Lines 37716 37714 -2
Branches 4329 4329
============================================
- Hits 14731 14727 -4
- Misses 21298 21299 +1
- Partials 1687 1688 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
I think we should better add |
Can anyone tell me where did the original demand come from? I think it is useless. please remember Less is more. |
@zhuxt2015 I have a different opinion from you, and I do not recommend you to modify it in this way. From your PR, you provide a default delimiter in the code. This is no problem when using the MySQL data source, but when using the Hive data source, this delimiter is not needed, Hive itself supports executing multiple segmented statements at a time. The description of the document I provided is not clear. What I have implemented is
I agree with what you said |
@zhuangchong |
@zhuxt2015 |
@zhuangchong |
ed23d99
to
645615e
Compare
@zhuangchong @zhongjiajie PTAL |
dolphinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/enums/DbType.java
Outdated
Show resolved
Hide resolved
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
@zhuxt2015 it is a incometible change, please also add some description in https://github.com/apache/dolphinscheduler/blob/dev/docs/docs/en/guide/upgrede/incompatible.md and the ref Chinese doc, thanks |
ok |
df072be
to
51e3dea
Compare
@zhuxt2015 sorry for reply late, and please solve the conflict, thanks |
51e3dea
to
a7a63f2
Compare
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 except few nits. PTAL when available, thanks : ) @zhuangchong @zhongjiajie @rickchengx
dolphinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/enums/DbType.java
Show resolved
Hide resolved
...hinscheduler-task-sql/src/main/java/org/apache/dolphinscheduler/plugin/task/sql/SqlTask.java
Outdated
Show resolved
Hide resolved
a7a63f2
to
8d9f200
Compare
SonarCloud Quality Gate failed. |
8d9f200
to
ad30744
Compare
SonarCloud Quality Gate failed. |
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.
Backend part LGTM. It would be better if we could have a corresponding UT case.
If there are no more comments, I will proceed to merge this PR tomorrow. |
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
LGTM, Adding UT case will be better
Backend part LGTM. It would be better if we could have a corresponding UT case.
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
fix #10870
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: