Skip to content

Commit

Permalink
Fix conditional for skippign null values
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcdonald3 committed Jun 10, 2024
1 parent 0bbe2dd commit 6881f7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ArrowFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,6 @@ int cpp_readColumnByName(const char* filename, void* chpl_arr, bool* where_null_

(void)reader->ReadBatch(batchSize, definition_levels.data(), nullptr, values.data(), &values_read);
totalProcessed += values_read;
// if values_read is 0, that means that it was a null value
int j = 0;
int numProcessed = 0;
while(numProcessed < values_read) {
Expand All @@ -865,9 +864,10 @@ int cpp_readColumnByName(const char* filename, void* chpl_arr, bool* where_null_
}
i++; // skip one space so the strings are null terminated with a 0
numProcessed++;
} else {
i++;
}
j++;
i++;
}
}
} else if(ty == ARROWFLOAT) {
Expand Down

0 comments on commit 6881f7f

Please sign in to comment.