caidashi opened a new issue, #10371:
URL: https://github.com/apache/seatunnel/issues/10371

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   任务执行一段时间后报错
   
   ### SeaTunnel Version
   
   2.3.12
   
   ### SeaTunnel Config
   
   ```conf
   env {
     parallelism = 2
     job.mode = "STREAMING"
     checkpoint.interval = 30000
     execution.jvm-options = "-Xms4g -Xmx4g"
   }
   
   source {
     MySQL-CDC {
       url = "xxx?useSSL=false&zeroDateTimeBehavior=convertToNull"
       username = "xxx"
       password = "xxx"
       database-pattern = "(xxx).*"
       table-pattern = "(xxx*?)\\.(xxx).+$"
       startup.mode = "earliest"
       schema-changes.enabled = true
       exactly_once = true
       plugin_output = "src"
     }
   }
   
   transform {
   
       RowKindExtractor {
         plugin_input = "src"
         plugin_output = "tf2"
         custom_field_name = "op"
         transform_type = SHORT
       }
   }
   
   sink {
       Doris {
       plugin_input = "tf2"
       fenodes = "xxx"
       username = "xxx"
       password = "xxx"
       database = "ods"
       table = "ods_${database_name}_${table_name}_rt"
       sink.label-prefix = "txn"
       schema_save_mode = "CREATE_SCHEMA_WHEN_NOT_EXIST"
       data_save_mode="APPEND_DATA"
       save_mode_create_template="""
       CREATE TABLE IF NOT EXISTS `${database}`.`${table}` (
           ${rowtype_primary_key},
           ${rowtype_fields},
           etl_time datetime default current_timestamp on update 
current_timestamp
           )UNIQUE KEY (${rowtype_primary_key})
           COMMENT '${comment}'
           DISTRIBUTED BY HASH (${rowtype_primary_key})  BUCKETS 2
            PROPERTIES (
           "replication_num" = "3",
           "in_memory" = "false",
           "storage_format" = "V2",
           "disable_auto_compaction" = "false"
           )
       """
       doris.batch.size = 3000
       doris.config {
         format = "json"
         read_json_by_line = "true"
       }
     }
   }
   ```
   
   ### Running Command
   
   ```shell
   dolphinscheduler啦气的任务, bin/seatunnel.sh
   ```
   
   ### Error Exception
   
   ```log
   ngeAfter=null))), column=PhysicalColumn(super=Column(name=run_date, 
dataType=TIMESTAMP, columnLength=null, scale=0, nullable=false, 
defaultValue=null, comment=null, sourceType=DATETIME, sinkType=null, 
options=null, isUnsigned=false, isZeroFill=false, bitLen=0, 
longColumnLength=null)), first=false, afterColumn=null, 
oldColumn=plan_run_date)])
           2026-01-20 10:51:29,962 WARN  [o.a.s.e.s.TaskExecutionService] 
[BlockingWorker-TaskGroupLocation{jobId=1064501099865571329, pipelineId=1, 
taskGroupId=2}] - [node4]:5801 [seatunnel-234476] [5.1] Exception in 
org.apache.seatunnel.engine.server.task.SourceSeaTunnelTask@3a6d1a52
           java.lang.NullPointerException: Cannot invoke 
"org.apache.seatunnel.api.table.type.SeaTunnelRowType.indexOf(String)" because 
"dataType" is null
                   at 
org.apache.seatunnel.api.table.schema.handler.AlterTableEventHandler.applyChangeColumn(AlterTableEventHandler.java:157)
 ~[seatunnel-starter.jar:2.3.12]
                   at 
org.apache.seatunnel.api.table.schema.handler.AlterTableEventHandler.apply(AlterTableEventHandler.java:71)
 ~[seatunnel-starter.jar:2.3.12]
                   at 
org.apache.seatunnel.api.table.schema.handler.AlterTableEventHandler.apply(AlterTableEventHandler.java:80)
 ~[seatunnel-starter.jar:2.3.12]
                   at 
org.apache.seatunnel.api.table.schema.handler.AlterTableEventHandler.apply(AlterTableEventHandler.java:57)
 ~[seatunnel-starter.jar:2.3.12]
                   at 
org.apache.seatunnel.api.table.schema.handler.DataTypeChangeEventDispatcher.apply(DataTypeChangeEventDispatcher.java:65)
 ~[seatunnel-starter.jar:2.3.12]
                   at 
org.apache.seatunnel.engine.server.task.SeaTunnelSourceCollector.collect(SeaTunnelSourceCollector.java:127)
 ~[seatunnel-starter.jar:2.3.12]
                   at 
org.apache.seatunnel.connectors.cdc.base.source.reader.IncrementalSourceRecordEmitter$OutputCollector.collect(IncrementalSourceRecordEmitter.java:215)
 ~[connector-cdc-base-2.3.12.jar:2.3.12]
                   at 
org.apache.seatunnel.connectors.cdc.debezium.row.SeaTunnelRowDebeziumDeserializeSchema.deserializeSchemaChangeRecord(SeaTunnelRowDebeziumDeserializeSchema.java:201)
 ~[connector-cdc-base-2.3.12.jar:2.3.12]
                   at 
org.apache.seatunnel.connectors.cdc.debezium.row.SeaTunnelRowDebeziumDeserializeSchema.deserialize(SeaTunnelRowDebeziumDeserializeSchema.java:112)
 ~[connector-cdc-base-2.3.12.jar:2.3.12]
                   at 
org.apache.seatunnel.connectors.cdc.base.source.reader.IncrementalSourceRecordEmitter.emitElement(IncrementalSourceRecordEmitter.java:201)
 ~[connector-cdc-base-2.3.12.jar:2.3.12
   ```
   
   ### Zeta or Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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]

Reply via email to