Skip to content

[flink] Add new type_mapping options to ignore some type changes when spcified#4921

Closed
JackeyLee007 wants to merge 2 commits intoapache:masterfrom
JackeyLee007:master
Closed

[flink] Add new type_mapping options to ignore some type changes when spcified#4921
JackeyLee007 wants to merge 2 commits intoapache:masterfrom
JackeyLee007:master

Conversation

@JackeyLee007
Copy link
Copy Markdown
Contributor

Purpose

Linked issue: close #4783

We use ticdc to collect data from tidb to kafka, but it does not provide specific parameters for types. No length for varcahr, and no precision and scale for decimal. The current schema evoluation would improve them to string and decimal(38, 18), which is not expected.
So we want to keep the type specified manually unchanged. This could be controlled by the new type_mapping options. NO_CHNAGE, DECIMAL_NO_CHANGE.

Tests

Observe the varchar and decimal field definition after new value ingested.

API and Format

No.

Documentation

Yes and provided

@JackeyLee007
Copy link
Copy Markdown
Contributor Author

@yuzelin Please help review the new type_mapping options

@yuzelin yuzelin self-requested a review January 17, 2025 03:11
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

1 participant