[FLINK-37300][common] Add RawDataType to represent the type in data sources
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:
- Added a new copy method
copy(boolean isNullable, RawDataType rawDataType), all external calls to copy method should use it directly or indirectly. - Added a new toString method
asSerializableStringWithRawDataType,asSummaryStringwill change to use it by default. - To avoid incorrect calls to the original
copy(boolean isNullable)andasSerializableStringmethod, I changed them toprotected.
Many test cases are modified because the newly added rawDataType field in DataType class, and now these test cases generally pass. PTAL @leonardBang @yuxiqian
ok,nice work @whhe
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.
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.