[feat][starrocks] add starrocks sync/sql connector#1237
Merged
FlechazoW merged 3 commits intoDTStack:masterfrom Sep 9, 2022
Merged
[feat][starrocks] add starrocks sync/sql connector#1237FlechazoW merged 3 commits intoDTStack:masterfrom
FlechazoW merged 3 commits intoDTStack:masterfrom
Conversation
0ffd5cf to
0de4a23
Compare
libailin
approved these changes
Sep 9, 2022
Contributor
|
LGTM |
0de4a23 to
684e2dd
Compare
FlechazoW
reviewed
Sep 9, 2022
...ks/src/main/java/com/dtstack/chunjun/connector/starrocks/source/be/StarRocksToJavaTrans.java
Show resolved
Hide resolved
FlechazoW
reviewed
Sep 9, 2022
...ks/src/main/java/com/dtstack/chunjun/connector/starrocks/source/be/StarRocksToJavaTrans.java
Outdated
Show resolved
Hide resolved
FlechazoW
reviewed
Sep 9, 2022
| import com.starrocks.shade.org.apache.thrift.protocol.TProtocol; | ||
| import com.starrocks.shade.org.apache.thrift.transport.TSocket; | ||
| import com.starrocks.shade.org.apache.thrift.transport.TTransportException; | ||
| import com.starrocks.thrift.*; |
FlechazoW
reviewed
Sep 9, 2022
|
|
||
| import java.io.IOException; | ||
| import java.io.Serializable; | ||
| import java.util.*; |
FlechazoW
reviewed
Sep 9, 2022
| <version>5.1.49</version> | ||
| </dependency> | ||
|
|
||
| <!-- <dependency>--> |
FlechazoW
reviewed
Sep 9, 2022
|
|
||
| <dependency> | ||
| <groupId>com.alibaba</groupId> | ||
| <artifactId>fastjson</artifactId> |
Member
There was a problem hiding this comment.
Duplicate dependencies are depended on the project, and we have other json-processed dependencies, like Gson, in the root pom.
FlechazoW
reviewed
Sep 9, 2022
| <dependency> | ||
| <groupId>mysql</groupId> | ||
| <artifactId>mysql-connector-java</artifactId> | ||
| <version>5.1.49</version> |
Member
There was a problem hiding this comment.
Is this version same as other connector?
FlechazoW
reviewed
Sep 9, 2022
...java/com/dtstack/chunjun/connector/starrocks/connection/StarRocksJdbcConnectionProvider.java
Outdated
Show resolved
Hide resolved
6b3b8c7 to
061c85c
Compare
FlechazoW
reviewed
Sep 9, 2022
| } | ||
|
|
||
| @Override | ||
| protected void closeInternal() {} |
.../src/main/java/com/dtstack/chunjun/connector/starrocks/source/StarRocksLruTableFunction.java
Outdated
Show resolved
Hide resolved
.../src/main/java/com/dtstack/chunjun/connector/starrocks/source/StarRocksLruTableFunction.java
Show resolved
Hide resolved
| } | ||
| } | ||
| } | ||
| beReader.close(); |
Member
There was a problem hiding this comment.
'close()' method should be called in 'finally' block.
| if (offsetOfBatchForRead < flinkRowsCount) { | ||
| return true; | ||
| } | ||
| this.close(); |
Member
There was a problem hiding this comment.
Why call the 'close()' method here ?
Contributor
Author
There was a problem hiding this comment.
fixed:close in finally
| .getPartitions() | ||
| .forEach( | ||
| (tabletId, tablet) -> { | ||
| int tabletCount = Integer.MAX_VALUE; |
Member
There was a problem hiding this comment.
I think this code block should be called in a method.
Member
|
Review done. |
061c85c to
6188550
Compare
6188550 to
e796c65
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose of this pull request
Which issue you fix
Fixes # (issue).
Checklist: