Skip to content
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

Merged
merged 2 commits into from
Jan 24, 2024

Conversation

joyCurry30
Copy link
Contributor

Refer to #2857.
Using the name of column, replace using column.
@lvyanquan

@lvyanquan
Copy link
Contributor

Thanks for this contribution, over all look good to me, left one comment. And can you fix the code style error?

Copy link
Contributor

@lvyanquan lvyanquan left a 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.

@lvyanquan
Copy link
Contributor

@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) {
Copy link
Contributor

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 ?

Copy link
Contributor

@lvyanquan lvyanquan Dec 22, 2023

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.

Copy link
Contributor

@ruanhang1993 ruanhang1993 left a 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.

@joyCurry30
Copy link
Contributor Author

cc plz. @lvyanquan @ruanhang1993

Copy link
Contributor

@ruanhang1993 ruanhang1993 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@lvyanquan lvyanquan merged commit c98f899 into apache:master Jan 24, 2024
17 checks passed
@joyCurry30 joyCurry30 deleted the use_column_name branch January 24, 2024 10:34
joyCurry30 added a commit to joyCurry30/flink-cdc-connectors that referenced this pull request Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants