Skip to content

Conversation

junmuz
Copy link
Contributor

@junmuz junmuz commented Sep 23, 2025

Description

FLINK-38413: Enables append only table creation from mysql pipeline connector. I have an added an integration test as well that creates out an Append only Paimon table from MySQL.

@junmuz junmuz marked this pull request as ready for review September 23, 2025 16:52
@junmuz junmuz marked this pull request as draft September 30, 2025 16:27
@junmuz junmuz marked this pull request as ready for review October 2, 2025 10:58
@junmuz
Copy link
Contributor Author

junmuz commented Oct 2, 2025

@lvyanquan Can I get a review on the above PR? Thanks.

@lvyanquan
Copy link
Contributor

lvyanquan commented Oct 5, 2025

Please create a jira issue for this.


@Experimental
public static final ConfigOption<Boolean> SCAN_READ_CHANGELOG_AS_APPEND_ONLY_ENABLED =
ConfigOptions.key("scan.read-changelog-as-append-only.enabled")
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this change would affect too many tables. Could we set a regular expression (e.g., scan.read-changelog-as-append-only.tables: adb.*) to modify the primary key only for tables that match this pattern?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's a good suggestion, I will try incorporating it.

LinkedList<SchemaChangeEvent> changes,
boolean tinyInt1isBit,
boolean isTableIdCaseInsensitive) {
this(parser, listeners, changes, tinyInt1isBit, isTableIdCaseInsensitive, false);
Copy link
Contributor

@lvyanquan lvyanquan Oct 5, 2025

Choose a reason for hiding this comment

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

Perhaps we can make this change in the MySqlPipelineRecordEmitter instead of modifying the CustomAlterTableParserListener(since this logic is not related to parsing).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I can do that. I was curious around the schema evolution side of things if there are any workflows from where primary key might get added accidentally.

@junmuz
Copy link
Contributor Author

junmuz commented Oct 6, 2025

Please create a jira issue for this.

There is already a ticket created mentioned in the description. FLINK-38413 for reference.

@lvyanquan lvyanquan changed the title Adding support for append only tables to MySQL Pipeline connector [FLINK-38413] Adding support for append only tables to MySQL Pipeline connector Oct 11, 2025
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.

2 participants