Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Aug 11, 2024
1 parent aac200a commit 5574bf5
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,15 @@ public void close() throws IOException {
importer.close();
importer = null;
}
// As our native reader reuses the same memory buffer for all columns, we only
// need to release the buffers once when closing the reader.
if (currentBatch != null) {
for (int i = 0; i < currentBatch.numCols(); i++) {
if (currentBatch.column(i) != null) {
currentBatch.column(i).close();
}
}
}
}

@SuppressWarnings("deprecation")
Expand Down

0 comments on commit 5574bf5

Please sign in to comment.