xccui commented on code in PR #25651:
URL: https://github.com/apache/flink/pull/25651#discussion_r1840898146


##########
flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/utils/NestedPositionUtil.java:
##########
@@ -50,12 +50,11 @@ public static RowPosition calculateRowOffsets(
         int nullValuesCount = 0;
         BooleanArrayList nullRowFlags = new BooleanArrayList(0);
         for (int i = 0; i < fieldDefinitionLevels.length; i++) {
+            // If row has array type field, the field repetition level's count 
will bigger than the
+            // actual row value count, so we need to skip those value that 
bigger than row's
+            // repetition level.

Review Comment:
   ```suggestion
               // If a row's last field is an array, the repetition levels for 
the array's items will be
               // larger than the parent row's repetition level, so we need to 
skip those values.
   ```



-- 
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]

Reply via email to