We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aae31da commit d856a36Copy full SHA for d856a36
dwio/nimble/velox/FieldReader.cpp
@@ -1422,8 +1422,9 @@ class SlidingWindowMapFieldReader final : public FieldReader {
1422
1423
bool hasNulls = nonNullCount != rowCount;
1424
// Read the lengths
1425
- uint32_t lengthBuffer[nonNullCount];
1426
- lengthsDecoder_->next(nonNullCount, lengthBuffer);
+ std::vector<uint32_t> lengthBuffer;
+ lengthBuffer.resize(nonNullCount);
1427
+ lengthsDecoder_->next(nonNullCount, lengthBuffer.data());
1428
1429
// Convert the offsets and lengths to a list of unique offsets and lengths
1430
// and update the indices to be 0-based indices
0 commit comments