-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix prepareForReuse for string vectors inside array/map/struct (#7465)
Summary: BaseVector::prepareForReuse used to clear all string buffers for string vectors inside a complex types vector, effectively prevented reuse of the string vectors. This happened because BaseVector::prepareForReuse for complex vectors calls BaseVector::resize(0) for child vectors and FlatVector<StringView>::resize(0) used to clear all string buffers. A fix is to modify FlatVector<StringView>::resize(0) to keep at most one string buffer, just like FlatVector<StringView>::prepareForReuse() does. Pull Request resolved: #7465 Reviewed By: spershin Differential Revision: D51097758 Pulled By: mbasmanova fbshipit-source-id: 7ab1e44c1bc5d4ada391668b4b30a52b845ab6be
- Loading branch information
1 parent
e3d28a1
commit 42b604b
Showing
6 changed files
with
74 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters