diff --git a/velox/dwio/dwrf/reader/FlatMapColumnReader.cpp b/velox/dwio/dwrf/reader/FlatMapColumnReader.cpp index 7ba27932222b..2e52f05081b8 100644 --- a/velox/dwio/dwrf/reader/FlatMapColumnReader.cpp +++ b/velox/dwio/dwrf/reader/FlatMapColumnReader.cpp @@ -686,7 +686,7 @@ void FlatMapStructEncodingColumnReader::next( if (rowVector) { // Track children vectors in a local variable because readNulls may reset // the parent vector. - result->resize(numValues, false); + rowVector->unsafeResize(numValues, false); children = rowVector->children(); DWIO_ENSURE_EQ(children.size(), keyNodes_.size()); }