[
https://issues.apache.org/jira/browse/FLINK-41011?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18127670#comment-18127670
]
tchivs commented on FLINK-41011:
--------------------------------
I would like to work on this. I cannot self-assign, so please assign it to me
(tchivs). The fix and a unit test are ready; I will open a PR against master
once assigned.
> [pipeline-connector/doris] Auto-created Doris table drops NOT NULL constraint
> of source columns
> -----------------------------------------------------------------------------------------------
>
> Key: FLINK-41011
> URL: https://issues.apache.org/jira/browse/FLINK-41011
> Project: Flink
> Issue Type: Bug
> Components: Flink CDC
> Affects Versions: cdc-3.6.0, cdc-3.7.0
> Reporter: tchivs
> Priority: Major
>
> {{DorisMetadataApplier}} builds the column type string from the CDC column
> type but never checks {{DataType#isNullable()}}, so every column of an
> auto-created Doris table is nullable even when the source column is NOT NULL.
> Suggested fix: append {{NOT NULL}} to the Doris type when the column type is
> not nullable.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)