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

[FLINK-36793][cdc-source-connectors] Fix the problem with the block splitter logic of Oracle CDC incremental snapshot, causing the split slice to be too large #3841

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

linjianchang
Copy link

Fix the problem with the block splitter logic of Oracle CDC incremental snapshot, causing the split slice to be too large.
java api compare rowid result:
java-compare
sql api compare rowid result:
sql-compare

The comparison results will be different, causing the last chunk size to be too large. The reason is that the logic of Java comparison and SQL comparison of rowids will be different.

…plitter logic of Oracle CDC incremental snapshot, causing the split slice to be too large
@@ -261,12 +261,16 @@ protected Column getSplitColumn(Table table, @Nullable String chunkKeyColumn) {
}

/** ChunkEnd less than or equal to max. */
protected boolean isChunkEndLeMax(Object chunkEnd, Object max, Column splitColumn) {
protected boolean isChunkEndLeMax(
JdbcConnection jdbc, Object chunkEnd, Object max, Column splitColumn)
Copy link
Contributor

Choose a reason for hiding this comment

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

Here we'd better to annotate @Nullable JdbcConnection jdbc for some dialect they do not need connection?

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