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-37012][transform] Fix exception caused by metadataColumns causing argument type mismatch #3837

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MOBIN-F
Copy link
Contributor

@MOBIN-F MOBIN-F commented Jan 6, 2025

pipelin.yml

...

transform:
  - source-table: testdb.cdc_test
    projection: id, concat(__table_name__,'_',id) as tbname_id
    primary-keys: id
....

When the id is not string type, the following exception is thrown

Caused by: java.lang.IllegalArgumentException: argument type mismatch
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.codehaus.janino.ExpressionEvaluator.evaluate(ExpressionEvaluator.java:541)
        at org.codehaus.janino.ExpressionEvaluator.evaluate(ExpressionEvaluator.java:533)
        at org.apache.flink.cdc.runtime.operators.transform.ProjectionColumnProcessor.evaluate(ProjectionColumnProcessor.java:99)
        at org.apache.flink.cdc.runtime.operators.transform.TransformProjectionProcessor.processData(TransformProjectionProcessor.java:154) 

@MOBIN-F
Copy link
Contributor Author

MOBIN-F commented Jan 6, 2025

@yuxiqian @aiwenmo PTAL~

@ChaomingZhangCN
Copy link
Contributor

LGTM, this bug caused by the order of parameters being disrupted.

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