-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[cdc-common][cdc-pipelines][cdc-runtime] Use name instead of column in DropColumnEvent/AddColumnEvent. #2888
Conversation
d16c153
to
159307b
Compare
flink-cdc-common/src/main/java/com/ververica/cdc/common/event/AddColumnEvent.java
Show resolved
Hide resolved
Thanks for this contribution, over all look good to me, left one comment. And can you fix the code style error? |
159307b
to
7cba483
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. And @ruanhang1993 PTAL.
@leonardBang @Jiabao-Sun CC and can you help to merge it? The following pipeline connectors rely on this issue. |
@@ -66,20 +66,20 @@ public static class ColumnWithPosition implements Serializable { | |||
private final ColumnPosition position; | |||
|
|||
/** The added column lies in the position relative to this column. */ | |||
private final @Nullable Column existingColumn; | |||
private final @Nullable String existedColumnName; | |||
|
|||
/** In the default scenario, we add fields at the end of the column. */ | |||
public ColumnWithPosition(Column addColumn) { |
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.
This is a public API, could we avoid changing this method ?
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.
It's a PublicEvolving
API, we change this because column type is unnecessary for sink to apply this SchemaChange, and source now just pass an arbitrary column type to build 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.
Thanks for the contribution. I left some comments.
.../src/main/java/com/ververica/cdc/runtime/serializer/schema/ColumnWithPositionSerializer.java
Outdated
Show resolved
Hide resolved
.../src/main/java/com/ververica/cdc/runtime/serializer/schema/ColumnWithPositionSerializer.java
Outdated
Show resolved
Hide resolved
.../src/main/java/com/ververica/cdc/runtime/serializer/schema/ColumnWithPositionSerializer.java
Show resolved
Hide resolved
1e0090a
to
9921e8f
Compare
9921e8f
to
7aef3a6
Compare
cc plz. @lvyanquan @ruanhang1993 |
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.
…n DropColumnEvent/AddColumnEvent.
7aef3a6
to
d905a65
Compare
…n DropColumnEvent/AddColumnEvent. (apache#2888)
…n DropColumnEvent/AddColumnEvent. (apache#2888)
Refer to #2857.
Using the name of column, replace using column.
@lvyanquan