fuyun2024 opened a new issue, #1807:
URL: https://github.com/apache/incubator-paimon/issues/1807

   ### Search before asking
   
   - [X] I searched in the 
[issues](https://github.com/apache/incubator-paimon/issues) and found nothing 
similar.
   
   
   ### Paimon version
   
   master
   
   ### Compute Engine
   
   flink 1.16.1
   
   ### Minimal reproduce step
   
   1. Specify partition column `pt`
   2. X line `pt` is null
   
   `Caused by: java.lang.NumberFormatException: null
        at java.lang.Integer.parseInt(Integer.java:542)
        at java.lang.Integer.valueOf(Integer.java:766)
        at org.apache.paimon.utils.TypeUtils.castFromString(TypeUtils.java:91)
        at 
org.apache.paimon.flink.sink.cdc.CdcRecordUtils.projectAsInsert(CdcRecordUtils.java:60)
        at 
org.apache.paimon.flink.sink.cdc.CdcRecordKeyAndBucketExtractor.partition(CdcRecordKeyAndBucketExtractor.java:89)
        at 
org.apache.paimon.flink.sink.cdc.CdcRecordChannelComputer.channel(CdcRecordChannelComputer.java:49)
        at 
org.apache.paimon.flink.sink.cdc.CdcRecordChannelComputer.channel(CdcRecordChannelComputer.java:27)
        at 
org.apache.paimon.flink.sink.FlinkStreamPartitioner.selectChannel(FlinkStreamPartitioner.java:45)
        at 
org.apache.paimon.flink.sink.FlinkStreamPartitioner.selectChannel(FlinkStreamPartitioner.java:29)
        at 
org.apache.flink.runtime.io.network.api.writer.ChannelSelectorRecordWriter.emit(ChannelSelectorRecordWriter.java:55)
        at 
org.apache.flink.streaming.runtime.io.RecordWriterOutput.pushToRecordWriter(RecordWriterOutput.java:105)
        at 
org.apache.flink.streaming.runtime.io.RecordWriterOutput.collect(RecordWriterOutput.java:91)
        at 
org.apache.flink.streaming.runtime.io.RecordWriterOutput.collect(RecordWriterOutput.java:45)
        at 
org.apache.flink.streaming.runtime.tasks.BroadcastingOutputCollector.collect(BroadcastingOutputCollector.java:77)
        at 
org.apache.flink.streaming.runtime.tasks.BroadcastingOutputCollector.collect(BroadcastingOutputCollector.java:32)
        at 
org.apache.flink.streaming.api.operators.CountingOutput.collect(CountingOutput.java:59)
        at 
org.apache.flink.streaming.api.operators.CountingOutput.collect(CountingOutput.java:31)
        at 
org.apache.flink.streaming.api.operators.TimestampedCollector.collect(TimestampedCollector.java:51)
        at java.util.ArrayList.forEach(ArrayList.java:1255)
        at 
org.apache.paimon.flink.sink.cdc.CdcParsingProcessFunction.processElement(CdcParsingProcessFunction.java:66)`
   
   
   ### What doesn't meet your expectations?
   
   Normal execution
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


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