Skip to content

Commit

Permalink
fix a potential issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wbo4958 committed Jan 8, 2025
1 parent 20a36f8 commit ea6d4d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ private[scala] class ExternalMemoryIterator(val input: Iterator[Table],
override def next(): ColumnBatch = {
inputNextIsCalled = true
withResource(new GpuColumnBatch(iter.next())) { batch =>
if (iter == input) {
if (iter.eq(input)) {
externalMemory.cacheTable(batch.table)
}
new CudfColumnBatch(
Expand Down

0 comments on commit ea6d4d8

Please sign in to comment.