[
https://issues.apache.org/jira/browse/FLINK-41011?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18127724#comment-18127724
]
tchivs commented on FLINK-41011:
--------------------------------
PR: https://github.com/apache/flink-cdc/pull/4582 — appends NOT NULL for
non-nullable columns in DorisMetadataApplier, with a unit test on the generated
DDL that fails on master. Could a committer please assign this issue to me
(tchivs) and approve the CI run? Thanks.
> [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
> Labels: pull-request-available
>
> {{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)