Skip to content

[Cherry pick][0.10] Read SQL Server schema and table from Debezium source info - #317

Open
123-komal wants to merge 2 commits into
release/0.10from
cherry-pick-0.10-sqlserver-table-id-compat
Open

123-komal wants to merge 2 commits into
release/0.10from
cherry-pick-0.10-sqlserver-table-id-compat

Conversation

@123-komal

@123-komal 123-komal commented Dec 4, 2026 •

Copy link
Copy Markdown

Original PR: #316

sahusanket and others added 2 commits December 1, 2026 11:47
Debezium 2.x uses multi-partition topic names for SQL Server, of the
form <prefix>.<database>.<schema>.<table>. SqlServerRecordConsumer took
the schema and table from fixed positions in topic.split("."), so a
database name containing '.' (for example sales.prod) produced a wrong
table id and every event for the table was dropped without a log line.
Topic names are also sanitized, so tables with characters such as ' '
in their names never matched the replicated table list.

Read the schema and table from the "schema" and "table" fields of the
Debezium source struct, which carry the raw names. Fall back to the last
two parts of the topic name only when the source struct lacks them, and
log a warning once per table when an event is skipped because the table
is not in the replicated table list.

(cherry picked from commit 247c7ce)
@123-komal 123-komal added the build label Dec 4, 2026
@123-komal 123-komal changed the title [Cherry pick][0.10 sqlserver table id compat [Cherry pick][0.10] Read SQL Server schema and table from Debezium source info Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants