[FLINK-39582][postgres] Allow logical messages#4387
Open
eskabetxe wants to merge 1 commit intoapache:masterfrom
Open
[FLINK-39582][postgres] Allow logical messages#4387eskabetxe wants to merge 1 commit intoapache:masterfrom
eskabetxe wants to merge 1 commit intoapache:masterfrom
Conversation
Member
Author
|
@GOODBOY008 can you help review this? |
Contributor
|
@eskabetxe , If it is introduced, what happens if the messages emitted via pg_logical_emit_message do not align with the table schema?If you insist on introducing it, please add a configuration option to explicitly enable it. Do not alter the existing logic to avoid disrupting currently running jobs that are working as expected. |
Member
Author
Hi @loserwang1024 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is the purpose of the change
Enable Postgres logical decoding messages produced by pg_logical_emit_message(transactional, prefix, content) to flow through to the user's DebeziumDeserializationSchema. Today these records are silently dropped before reaching deserialization. See [FLINK-39582] for the problem statement and root cause.
Brief change log
Base extension hooks (no domain logic; pure extensibility):
Postgres connector:
Configuration:
Design notes
Verifying this change
Added tests under flink-connector-postgres-cdc/src/test/java/.../source/reader/: