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] Add new TypeMapping options to ignore type change in special cases #4798

Closed
wants to merge 7 commits into from

Conversation

JackeyLee007
Copy link
Contributor

Purpose

Linked issue: close #4783

Tests

org.apache.paimon.flink.action.cdc.mysql.MySqlCdcTypeMappingITCase#testDecimalNoChange
org.apache.paimon.flink.action.cdc.mysql.MySqlCdcTypeMappingITCase#testNoChange

API and Format

No

Documentation

Yes and doc provided

boolean allowTypeChange =
this.typeMapping == null
|| !this.typeMapping.containsMode(TypeMapping.TypeMappingMode.NO_CHANGE);

Copy link
Contributor

Choose a reason for hiding this comment

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

Where the "DECIMAL_NO_CHANGE" use?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for review, I'll check that again.

@JackeyLee007
Copy link
Contributor Author

Close for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Ignore decimal type evolution in special case
2 participants