DanielCarter-stack commented on issue #10371: URL: https://github.com/apache/seatunnel/issues/10371#issuecomment-3771891252
<!-- code-pr-reviewer --> Thanks for reporting this. Based on the stack trace, the NPE occurs in `AlterTableEventHandler.applyChangeColumn` when `dataType.indexOf(columnName)` is called on a null `dataType` at line 157. Evidence from the codebase: - `seatunnel-api/src/main/java/org/apache/seatunnel/api/table/schema/handler/AlterTableEventHandler.java` — NPE point in `applyChangeColumn` method - `seatunnel-connectors-v2/connector-cdc/connector-cdc-base/src/main/java/org/apache/seatunnel/connectors/cdc/debezium/row/SeaTunnelRowDebeziumDeserializeSchema.java` — CDC entry converting Debezium DDL to `AlterTableEvent` - `seatunnel-api/src/main/java/org/apache/seatunnel/api/table/schema/event/AlterTableChangeColumnEvent.java` — event definition with nullable `dataType` field This appears to be a missing null guard when processing `AlterTableChangeColumnEvent` from MySQL CDC. Could you provide: 1. The exact DDL statement executed on MySQL (e.g., `ALTER TABLE ... CHANGE COLUMN ...`) 2. The Debezium event JSON for the schema change (enable debug logging if needed) 3. Whether this reproduces on the latest dev or a newer version (e.g., 2.3.13+) As a workaround, you may temporarily disable schema changes via `schema-changes.enabled = false`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
