Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzelin committed Aug 2, 2024
1 parent 3c15586 commit 11bae15
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ public static CollectionPosition calculateCollectionOffsets(
i < definitionLevels.length;
i = getNextCollectionStartIndex(repetitionLevels, collectionRepetitionLevel, i)) {
if (definitionLevels[i] >= collectionDefinitionLevel - 1) {
valueCount++;

boolean isNull =
isOptionalFieldValueNull(definitionLevels[i], collectionDefinitionLevel);
if (isNull) {
Expand Down Expand Up @@ -142,7 +144,6 @@ public static CollectionPosition calculateCollectionOffsets(
collectionDefinitionLevel));
}
offsets.add(offset);
valueCount++;
}
// else when definitionLevels[i] < collectionDefinitionLevel - 1, it means the
// collection is not defined, just ignore it
Expand Down

0 comments on commit 11bae15

Please sign in to comment.