Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions c++/src/ColumnReader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,9 @@ namespace orc {
std::unordered_map<uint64_t, PositionProvider>& positions) {
ColumnReader::seekToRowGroup(positions);
inputStream->seek(positions.at(columnId));
// clear buffer state after seek
bufferEnd = nullptr;
bufferPointer = nullptr;
}

class StringDictionaryColumnReader: public ColumnReader {
Expand Down Expand Up @@ -838,6 +841,9 @@ namespace orc {
ColumnReader::seekToRowGroup(positions);
blobStream->seek(positions.at(columnId));
lengthRle->seek(positions.at(columnId));
// clear buffer state after seek
lastBuffer = nullptr;
lastBufferLength = 0;
}

class StructColumnReader: public ColumnReader {
Expand Down Expand Up @@ -1553,6 +1559,9 @@ namespace orc {
ColumnReader::seekToRowGroup(positions);
valueStream->seek(positions.at(columnId));
scaleDecoder->seek(positions.at(columnId));
// clear buffer state after seek
buffer = nullptr;
bufferEnd = nullptr;
}

class Decimal128ColumnReader: public Decimal64ColumnReader {
Expand Down