Skip to content

Conversation

@Mrart
Copy link
Contributor

@Mrart Mrart commented Dec 18, 2025

As #4056 only support mysql.
We add postgres implement.
`
For historical reasons, the current implementation does not utilize the Source to build a schema cache. This requires the TransformOperator to maintain its own complex state.

An optimization is proposed: to build a reusable schema cache at the Source (or in an operator immediately following it).

The primary benefit of this approach is that the transform operator can be made completely stateless. This simplifies its design, improves architectural modularity, and makes the entire pipeline more robust and maintainable.
`

…mas from split and Make transform operator stateless
@Mrart Mrart changed the title [FLINK-38818] [posgtresql]Build createTableEventCache using TableSchemas from split and Make transform operator stateless [FLINK-38818] [posgtresql]Build createTableEventCache using TableSchemas from split Dec 23, 2025
@lvyanquan lvyanquan added this to the V3.6.0 milestone Dec 23, 2025
@lvyanquan lvyanquan self-assigned this Dec 23, 2025
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.

Overall LGTM. left two minor comments.

debeziumDeserializationSchema.deserialize(element, outputCollector);
}

public void applySplit(SourceSplitBase split) {}
Copy link
Contributor

Choose a reason for hiding this comment

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

It's better to add some java doc for this newly added public method.

.collect(Collectors.toList());

// Verify that we captured the expected number of data change events
assertThat(actualDataChangeEvents.size()).isGreaterThanOrEqualTo(expectedBinlog.size());
Copy link
Contributor

Choose a reason for hiding this comment

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

It's better to add a scenario for creating a savepoint and restoring reads from the savepoint here too.

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