Skip to content
Open
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
5 changes: 3 additions & 2 deletions dwio/nimble/velox/FieldReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1422,8 +1422,9 @@ class SlidingWindowMapFieldReader final : public FieldReader {

bool hasNulls = nonNullCount != rowCount;
// Read the lengths
uint32_t lengthBuffer[nonNullCount];
lengthsDecoder_->next(nonNullCount, lengthBuffer);
std::vector<uint32_t> lengthBuffer;
lengthBuffer.resize(nonNullCount);
lengthsDecoder_->next(nonNullCount, lengthBuffer.data());

// Convert the offsets and lengths to a list of unique offsets and lengths
// and update the indices to be 0-based indices
Expand Down
Loading