databricks / iceberg-kafka-connect

Apache License 2.0
213 stars 47 forks source link

Record projection bug, Index 2 out of bounds for length 2 #287

Closed ismailsimsek closed 1 month ago

ismailsimsek commented 1 month ago

Just found the issue! it was the issue when generating GenericAppenderFactory in which full table schema was given, instead of key schema

https://github.com/tabular-io/iceberg-kafka-connect/blob/595f835f5d9174e57660b12f407dabc84781e500/kafka-connect/src/test/java/io/tabular/iceberg/connect/data2/IcebergUtil.java#L96-L103