Skip to content

Commit d856a36

Browse files
sdruzkinfacebook-github-bot
authored andcommitted
Remove C-style array from SlidingWindowMapFieldReader
Differential Revision: D84987653
1 parent aae31da commit d856a36

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dwio/nimble/velox/FieldReader.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,8 +1422,9 @@ class SlidingWindowMapFieldReader final : public FieldReader {
14221422

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

14281429
// Convert the offsets and lengths to a list of unique offsets and lengths
14291430
// and update the indices to be 0-based indices

0 commit comments

Comments
 (0)