Record projection Index out of bounds error
Closed this issue · 1 comments
ismailsimsek commented
Hi ,
Im getting Index 2 out of bounds error when writing deletes writer.deleteKey(keyProjection.wrap(row));
couldnt pinpoint the issue but looks like a bug in iceberg code?
It seems like. In the ParquetValueWriters
for delete files writers.length
has full record schema, instead of key schema.
then its failing to lookup non key fields. so its looping over all the fields, which are more than key fields, and then failing with index error.
here is a test to reproduce it #287
cc @bryanck
ismailsimsek commented
Just found the issue! it was the issue when generating GenericAppenderFactory
in which full table schema was given, instead of key schema