dsanww opened a new issue, #4046: URL: https://github.com/apache/paimon/issues/4046
### Search before asking - [X] I searched in the [issues](https://github.com/apache/paimon/issues) and found nothing similar. ### Paimon version paimon-flink-1.18-0.9-20240708.002315-31.jar ### Compute Engine flink1.18 ### Minimal reproduce step step1: create TABLE if not exists `default`.`result_t` ( `id` int NOT NULL COMMENT '主键,全局唯一id', `sex` int , `join_infos` array<row<id int,name STRING,age INT>> COMMENT '品类id', `update_time` TIMESTAMP(0) COMMENT '更新时间', PRIMARY KEY (`id`) NOT ENFORCED ) WITH ( 'bucket' = '1', 'changelog-producer' = 'lookup', 'merge-engine'='partial-update', 'fields.update_time.sequence-group'='join_infos', 'fields.join_infos.aggregate-function' = 'nested_update', 'fields.join_infos.nested-key' = 'id' ); step2: insert into `default`.`result_t` select 6, cast(null as int), array[cast(null as row<id int,name STRING,age INT>)], PROCTIME (); The insert statement throws an exception: insert into `default`.`result_t` select 6, cast(null as int), array[row(1,'2',3)], PROCTIME (); excpetion: java.io.IOException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 1 at org.apache.paimon.flink.sink.StoreSinkWriteImpl.prepareCommit(StoreSinkWriteImpl.java:225) at org.apache.paimon.flink.sink.TableWriteOperator.prepareCommit(TableWriteOperator.java:121) at org.apache.paimon.flink.sink.RowDataStoreWriteOperator.prepareCommit(RowDataStoreWriteOperator.java:189) at org.apache.paimon.flink.sink.PrepareCommitOperator.emitCommittables(PrepareCommitOperator.java:100) at org.apache.paimon.flink.sink.PrepareCommitOperator.endInput(PrepareCommitOperator.java:88) at org.apache.flink.streaming.runtime.tasks.StreamOperatorWrapper.endOperatorInput(StreamOperatorWrapper.java:96) at org.apache.flink.streaming.runtime.tasks.RegularOperatorChain.endInput(RegularOperatorChain.java:97) at org.apache.flink.streaming.runtime.io.StreamOneInputProcessor.processInput(StreamOneInputProcessor.java:68) at org.apache.flink.streaming.runtime.tasks.StreamTask.processInput(StreamTask.java:562) at org.apache.flink.streaming.runtime.tasks.mailbox.MailboxProcessor.runMailboxLoop(MailboxProcessor.java:231) at org.apache.flink.streaming.runtime.tasks.StreamTask.runMailboxLoop(StreamTask.java:858) at org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:807) at org.apache.flink.runtime.taskmanager.Task.runWithSystemExitMonitoring(Task.java:953) at org.apache.flink.runtime.taskmanager.Task.restoreAndInvoke(Task.java:932) at org.apache.flink.runtime.taskmanager.Task.doRun(Task.java:746) at org.apache.flink.runtime.taskmanager.Task.run(Task.java:562) at java.lang.Thread.run(Thread.java:750) ### What doesn't meet your expectations? no error ### 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]
