-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Fix] [Kafka Source] kafka source use topic as table name instead of fullName #8401
base: dev
Are you sure you want to change the base?
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.
LGTM if ci passes.
eab9490
to
29a2ddb
Compare
29a2ddb
to
428e2f6
Compare
c88c3ad
to
643f82c
Compare
String topic = readonlyConfig.get(TOPIC).replace(".", "_"); | ||
TablePath tablePath = TablePath.of("kafka", topic); |
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.
Hi why not use TablePath.of("kafka", readonlyConfig.get(TOPIC))
?
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.
If the kafka topic name contains more than 3 points, when this line of code is executed, it will still be separated by points. If the element is greater than 3, IllegalArgumentException will still be thrown
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 think we should fix it. We can save the TablePath directly instead of the corresponding string in SinkFlowLifeCycle
.
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 tried to save the TablePath before, but it involved other files and many of them were modified
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.
Never mind. Please commit it then we can review it together.
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.
@Hisoka-X Hi,pls have a review
61686ed
to
25f720b
Compare
25f720b
to
8754e65
Compare
// String tableId = | ||
// action.getConfig().getMultipleRowTableId(); |
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.
// String tableId = | |
// action.getConfig().getMultipleRowTableId(); |
@@ -25,5 +27,6 @@ | |||
@NoArgsConstructor | |||
@AllArgsConstructor | |||
public class SinkConfig implements Config { | |||
private String multipleRowTableId; | |||
// private String multipleRowTableId; |
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.
// private String multipleRowTableId; |
Overall LGTM. Let's waiting to check the ci result. |
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.
But you lost the change of kafka and test case.
ok, I will delete the comment code you just mentioned and add kafka test case |
0d3b5fd
to
38e5925
Compare
Purpose of this pull request
resolve #8396
Does this PR introduce any user-facing change?
How was this patch tested?
Check list
New License Guide
release-note
.