-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug in PrestoVectorSerializers when serializing empty Vectors wit…
…h complex types (#9157) Summary: Pull Request resolved: #9157 PrestoIterativeVectorSerializer currently only supports serializing empty Vectors/selections when the columns are flat primitives. If the columns are complex attempting to serialize them will trigger a SIGSEGV. PrestoBatchVectorSerializer doesn't support serializing empty Vectors/selections at all. The fixes VectorStream to initialize itself and its children correctly when the Vector is empty. It also updates PrestoBatchVectorSerializer to only call serialize on the children if the Vector is non-empty. With these two changes both serializers support any column types in empty Vectors. Reviewed By: aozturk Differential Revision: D55090408 fbshipit-source-id: 720bba19c265f0e1ee7dc55245e344aa4cda29fa
- Loading branch information
1 parent
29d0f31
commit 1d95a47
Showing
2 changed files
with
134 additions
and
2 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