Skip to content

Commit 9c57adc

Browse files
yingjianwu98stevie9868
andauthored
refactor: remove duplicated close in columnarBatch (#100)
Removing duplicate close for columnarBatch Co-authored-by: stevie9868 <[email protected]>
1 parent c8eab10 commit 9c57adc

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lance-spark-base_2.12/src/main/java/com/lancedb/lance/spark/internal/LanceFragmentColumnarBatchScanner.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,6 @@ public ColumnarBatch getCurrentBatch() {
8787

8888
@Override
8989
public void close() throws IOException {
90-
if (currentColumnarBatch != null) {
91-
currentColumnarBatch.close();
92-
}
9390
if (currentColumnarBatch != null) {
9491
currentColumnarBatch.close();
9592
}

0 commit comments

Comments
 (0)