guluo2016 opened a new issue, #4686: URL: https://github.com/apache/paimon/issues/4686
### Search before asking - [X] I searched in the [issues](https://github.com/apache/paimon/issues) and found nothing similar. ### Paimon version Paimon 1.0 paimon-spark-3.3-1.0-20241129.002716-51.jar ### Compute Engine Spark 3.3.4 ### Minimal reproduce step In Spark, if we create table by the following sql: ```sql use paimon; CREATE TABLE T ( id INT, name STRING ); select * from `T$binlog` ``` we will get the following error: ```shell Caused by: java.lang.ClassCastException: org.apache.paimon.types.IntType cannot be cast to org.apache.paimon.types.ArrayType at org.apache.paimon.utils.BulkFormatMapping$BulkFormatMappingBuilder.pruneDataType(BulkFormatMapping.java:189) at org.apache.paimon.utils.BulkFormatMapping$BulkFormatMappingBuilder.lambda$readDataFields$1(BulkFormatMapping.java:160) at java.util.Optional.ifPresent(Optional.java:159) ``` But if we create table by the following sql: ```sql use paimon; CREATE TABLE students ( name STRING, age INT, course STRUCT<course_name: STRING, grade: DOUBLE> ) select * from `students$binlog` ``` We can obtain the results normally. I haven't found any similar errors in flink. This bug may be caused by this changeļ¼ https://github.com/apache/paimon/pull/4269 ### What doesn't meet your expectations? No exception ### Anything else? no ### 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: issues-unsubscr...@paimon.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org