Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JingsongLi committed Dec 21, 2024
1 parent 9a7deab commit 0982da9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ public class ColumnarRowIterator extends RecyclableIterator<InternalRow>

private final boolean vectorizedAndCompactly;

public ColumnarRowIterator(Path filePath, ColumnarRow row, @Nullable Runnable recycler) {
this(filePath, row, recycler, true);
}

public ColumnarRowIterator(
Path filePath,
ColumnarRow row,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,15 @@ public final class IteratorResultIterator extends RecyclableIterator<InternalRow
private final Path filePath;
private long nextFilePos;

private final boolean vectorizedAndCompactly;

public IteratorResultIterator(
final IteratorWithException<InternalRow, IOException> records,
final @Nullable Runnable recycler,
final Path filePath,
long pos,
boolean vectorizedAndCompactly) {
long pos) {
super(recycler);
this.records = records;
this.filePath = filePath;
this.nextFilePos = pos;
this.vectorizedAndCompactly = vectorizedAndCompactly;
}

@Nullable
Expand All @@ -73,6 +69,6 @@ public Path filePath() {

@Override
public boolean vectorizedAndCompactly() {
return vectorizedAndCompactly;
return false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public IteratorResultIterator readBatch() throws IOException {
IteratorWithException<InternalRow, IOException> iterator =
new AvroBlockIterator(reader.getBlockCount(), reader);
return new IteratorResultIterator(
iterator, () -> pool.recycler().recycle(ticket), filePath, rowPosition, false);
iterator, () -> pool.recycler().recycle(ticket), filePath, rowPosition);
}

private boolean readNextBlock() throws IOException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ protected OrcReaderBatch(
this.paimonColumnBatch = paimonColumnBatch;
this.result =
new ColumnarRowIterator(
filePath, new ColumnarRow(paimonColumnBatch), this::recycle, true);
filePath, new ColumnarRow(paimonColumnBatch), this::recycle);
}

/**
Expand Down

0 comments on commit 0982da9

Please sign in to comment.