Skip to content

Commit ba2c74d

Browse files
committed
manual cleanup in ScanIterator
1 parent a0dca0d commit ba2c74d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

reader/src/main/java/io/github/dfa1/vortex/scan/ScanIterator.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ public final class ScanIterator implements AutoCloseable {
5252
private Arena chunkArena;
5353

5454
private List<ChunkSpec> chunks;
55-
private Map<String, DType> columnDtypes;
5655
private List<String> projectedNames;
5756
private List<DType> projectedDtypes;
5857
private int chunkIndex;
@@ -166,7 +165,7 @@ private void initialize() {
166165
DType rootDtype = file.dtype();
167166

168167
var columnFlats = new LinkedHashMap<String, List<Layout>>();
169-
columnDtypes = new LinkedHashMap<>();
168+
Map<String, DType> columnDtypes = new LinkedHashMap<>();
170169

171170
if (rootLayout.isStruct() && rootDtype instanceof DType.Struct structDtype) {
172171
List<String> projection = options.columns();
@@ -303,7 +302,6 @@ private Array decodeDictLayout(Layout dictLayout, DType dtype, SegmentAllocator
303302
// child[0] = values layout; child[1] = codes layout
304303
Layout valuesLayout = dictLayout.children().get(0);
305304
Layout codesLayout = dictLayout.children().get(1);
306-
long valuesLen = valuesLayout.rowCount();
307305
long n = codesLayout.rowCount();
308306

309307
Array values = decodeLayout(valuesLayout, dtype, arena);

0 commit comments

Comments
 (0)