Skip to content

Commit

Permalink
Fix multilocale infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcdonald3 committed Jun 11, 2024
1 parent 9857968 commit 290f1e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ArrowFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ int cpp_readColumnByName(const char* filename, void* chpl_arr, bool* where_null_
int totalProcessed = 0;
std::vector<parquet::ByteArray> values(batchSize);
std::vector<int16_t> definition_levels(batchSize);
while (reader->HasNext()) {
while (reader->HasNext() && totalProcessed < numElems) {
if((numElems - totalProcessed) < batchSize) // adjust batchSize if needed
batchSize = numElems - totalProcessed;

Expand Down

0 comments on commit 290f1e3

Please sign in to comment.