Skip to content

Commit

Permalink
Call unsafeResize in FlatMapReaders (facebookincubator#8129)
Browse files Browse the repository at this point in the history
Summary:
X-link: facebookincubator/nimble#15

Pull Request resolved: facebookincubator#8129

We need to call unsafeResize in the DWRF FlatMapReader.

Reviewed By: zzhao0

Differential Revision: D52339055

fbshipit-source-id: 5ce8b38cebab5da7623c8a4923dc816cd94e5e12
  • Loading branch information
Kevin Wilfong authored and facebook-github-bot committed Feb 15, 2024
1 parent a7ac9a7 commit 2068b95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion velox/dwio/dwrf/reader/FlatMapColumnReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ void FlatMapStructEncodingColumnReader<T>::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());
}
Expand Down

0 comments on commit 2068b95

Please sign in to comment.