Skip to content

Commit

Permalink
Revert changes done for constructArrayValuesFromArray
Browse files Browse the repository at this point in the history
  • Loading branch information
SasinduDilshara committed Aug 1, 2024
1 parent db2d25e commit 32aa1ae
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,13 +396,14 @@ private void traverseArrayValue(Object csvElement, Type type) {
}

private void constructArrayValuesFromArray(BArray csvElement, Type type, int expectedSize) {
for (int index = 0; index < csvElement.getLength(); index++) {
int index = 0;
for (int i = 0; i < csvElement.getLength(); i++) {
if (config.allowDataProjection && index >= expectedSize) {
break;
}
Type memberType = getArrayOrTupleMemberType(type, index);
if (memberType != null) {
addValuesToArrayType(csvElement.get(index), memberType, index, currentCsvNode);
addValuesToArrayType(csvElement.get(i), memberType, index, currentCsvNode);
}
index++;
}
Expand Down

0 comments on commit 32aa1ae

Please sign in to comment.