rdblue commented on code in PR #12581:
URL: https://github.com/apache/iceberg/pull/12581#discussion_r2004256920
##########
parquet/src/main/java/org/apache/iceberg/parquet/ParquetValueWriters.java:
##########
@@ -648,7 +656,7 @@ protected StructWriter(List<ParquetValueWriter<?>> writers)
{
@Override
public void write(int repetitionLevel, S value) {
for (int i = 0; i < writers.length; i += 1) {
- Object fieldValue = get(value, i);
+ Object fieldValue = get(value, fieldIndexes[i]);
Review Comment:
The fix is to map from writer index to field index. The index is created
below by skipping unknown fields in the data struct.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]