flink-cdc icon indicating copy to clipboard operation
flink-cdc copied to clipboard

[FLINK-37300][common] Add RawDataType to represent the type in data sources

Open whhe opened this issue 11 months ago • 4 comments

This closes FLINK-37300.

In this PR, I added RawDataType and JdbcRawDataType to represent the original data type in data sources, and made some changes to the base DataType class:

  1. Added a new copy method copy(boolean isNullable, RawDataType rawDataType), all external calls to copy method should use it directly or indirectly.
  2. Added a new toString method asSerializableStringWithRawDataType, asSummaryString will change to use it by default.
  3. To avoid incorrect calls to the original copy(boolean isNullable) and asSerializableString method, I changed them to protected.

whhe avatar Feb 18 '25 03:02 whhe

Many test cases are modified because the newly added rawDataType field in DataType class, and now these test cases generally pass. PTAL @leonardBang @yuxiqian

whhe avatar Mar 05 '25 12:03 whhe

ok,nice work @whhe

leonardBang avatar Mar 05 '25 12:03 leonardBang

This pull request has been automatically marked as stale because it has not had recent activity for 120 days. It will be closed in 60 days if no further activity occurs.

github-actions[bot] avatar Jul 04 '25 00:07 github-actions[bot]

This pull request has been closed because it has not had recent activity. You could reopen it if you try to continue your work, and anyone who are interested in it are encouraged to continue work on this pull request.

github-actions[bot] avatar Sep 03 '25 00:09 github-actions[bot]