-
Notifications
You must be signed in to change notification settings - Fork 2k
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-35984][transform] Fix: Job crashes when metadata column names present in transform rules #3528
Conversation
cc @yuxiqian |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @MOBIN-F for the contribution, I only left two minor comments
flink-cdc-runtime/src/main/java/org/apache/flink/cdc/runtime/parser/TransformParser.java
Outdated
Show resolved
Hide resolved
...test/java/org/apache/flink/cdc/runtime/operators/transform/UnifiedTransformOperatorTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
flink-cdc-runtime/src/main/java/org/apache/flink/cdc/runtime/parser/TransformParser.java
Outdated
Show resolved
Hide resolved
Co-authored-by: yuxiqian <34335406+yuxiqian@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, wait the CI green
…be used in transform rule This closes apache#3528. Co-authored-by: yuxiqian <34335406+yuxiqian@users.noreply.github.com>
…be used in transform rule This closes apache#3528. Co-authored-by: yuxiqian <34335406+yuxiqian@users.noreply.github.com>
since metadata column existence check was done by searching identifier string in statement, without considering any syntax info
In the transform rule (projection: *, 'namespace_nameschema_nametable_name' AS string_literal) mentioned in FLINK-35984, Caused by: java.lang.IllegalArgumentException: wrong number of arguments is thrown because of the "*" symbol. The PreTransformOperator introduced in FLINK-35272 fixes the "*" problem, but there are still some scenarios where Caused by: java.lang.IllegalArgumentException: wrong number of arguments is thrown due to metaColumn name conflicts. This PR will fix these bugs.