[FLINK-36184][transform] Fix transform operator swallows schema changes from tables not present in transform rules #3589
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.
This closes FLINK-36184.
Currently, tables that are not present in transform blocks should be treated as if there's such a dummy fallback block:
There's a bug in #3557's implementation, where schema change events should be filtered out if there's no wildcard (
*
) in transform rules. However, it also filters out those tables that are not defined in transform rules, which causes schema change events lost with the following example:Here, since there's one transform block,
TransformOperator
will be added into operator chain. Now let's perform some schema change events in another table (likedb.table
), it will be filtered out since TransformOperator regards it as a asterisk-less table and does not require schema change events.By checking if a table is transformed or not, we could set
hasAsterisk
flag map correctly and resolve this problem.