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-35984][transform] Fix: Job crashes when metadata column names present in transform rules #3528

Merged
merged 3 commits into from
Aug 12, 2024

Conversation

MOBIN-F
Copy link
Contributor

@MOBIN-F MOBIN-F commented Aug 9, 2024

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.

@MOBIN-F
Copy link
Contributor Author

MOBIN-F commented Aug 9, 2024

cc @yuxiqian

Copy link
Contributor

@leonardBang leonardBang left a 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

@MOBIN-F MOBIN-F closed this Aug 9, 2024
@MOBIN-F MOBIN-F deleted the FLINK-35984 branch August 9, 2024 16:38
@MOBIN-F MOBIN-F restored the FLINK-35984 branch August 9, 2024 16:43
@MOBIN-F MOBIN-F reopened this Aug 9, 2024
Copy link
Contributor

@yuxiqian yuxiqian left a comment

Choose a reason for hiding this comment

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

Looks great!

Co-authored-by: yuxiqian <34335406+yuxiqian@users.noreply.github.com>
Copy link
Contributor

@leonardBang leonardBang left a 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

@leonardBang leonardBang merged commit 17d21a9 into apache:master Aug 12, 2024
21 checks passed
qiaozongmi pushed a commit to qiaozongmi/flink-cdc that referenced this pull request Sep 23, 2024
…be used in transform rule

This closes  apache#3528.

Co-authored-by: yuxiqian <34335406+yuxiqian@users.noreply.github.com>
ChaomingZhangCN pushed a commit to ChaomingZhangCN/flink-cdc that referenced this pull request Jan 13, 2025
…be used in transform rule

This closes  apache#3528.

Co-authored-by: yuxiqian <34335406+yuxiqian@users.noreply.github.com>
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.

3 participants