[
https://issues.apache.org/jira/browse/FLINK-38238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18013614#comment-18013614
]
wuzexian commented on FLINK-38238:
----------------------------------
Hi,
I would like to work on this issue. I've read the description and I believe I
have a good understanding of the problem.
Could you please assign this to me?
Thanks!
> Failed to process MySQL table with varchar(0) column
> ----------------------------------------------------
>
> Key: FLINK-38238
> URL: https://issues.apache.org/jira/browse/FLINK-38238
> Project: Flink
> Issue Type: Bug
> Components: Flink CDC
> Affects Versions: cdc-3.1.0, cdc-3.2.0, cdc-3.1.1, cdc-3.3.0, cdc-3.2.1,
> cdc-3.4.0
> Reporter: Yanquan Lv
> Priority: Minor
> Attachments: image-2025-08-13-15-38-25-188.png
>
>
> When there is a table in my synchronization job that contains varchar (0)
> fields, I encountered the following exception:
> java.lang.IllegalArgumentException: Variable character string length must be
> between 1 and 2147483647 (both inclusive).
> at
> com.ververica.cdc.common.types.VarCharType.<init>(VarCharType.java:51)
> ~[blob_p-5a745fbb2d4d447d6924d6c13e4d8b6a1a18e5c6-cd2f15a123d2a7adb9c698092f6a53b9:3.0.0]
> at
> com.ververica.cdc.common.types.VarCharType.<init>(VarCharType.java:59)
> ~[blob_p-5a745fbb2d4d447d6924d6c13e4d8b6a1a18e5c6-cd2f15a123d2a7adb9c698092f6a53b9:3.0.0]
> at com.ververica.cdc.common.types.DataTypes.VARCHAR(DataTypes.java:149)
> ~[blob_p-5a745fbb2d4d447d6924d6c13e4d8b6a1a18e5c6-cd2f15a123d2a7adb9c698092f6a53b9:3.0.0]
> at
> com.ververica.cdc.connectors.mysql.utils.MySqlTypeUtils.convertFromColumn(MySqlTypeUtils.java:201)
>
> ~[blob_p-c22401d6e111180558f1370b4310f3e3c7653e1d-95dd7302da5da0b2065cfc1868d5c0fe:3.0.0]
> at
> com.ververica.cdc.connectors.mysql.utils.MySqlTypeUtils.fromDbzColumn(MySqlTypeUtils.java:109)
>
> ~[blob_p-c22401d6e111180558f1370b4310f3e3c7653e1d-95dd7302da5da0b2065cfc1868d5c0fe:3.0.0]
> at
> com.ververica.cdc.connectors.mysql.source.reader.MySqlPipelineRecordEmitter.parseDDL(MySqlPipelineRecordEmitter.java:203)
>
> ~[blob_p-c22401d6e111180558f1370b4310f3e3c7653e1d-95dd7302da5da0b2065cfc1868d5c0fe:3.0.0]
> !image-2025-08-13-15-38-25-188.png!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)