forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ContainerRowSerde::compare for arrays and maps (facebookincubator…
…#6767) Summary: ContainerRowSerde::compare crashes or produced incorrect results when processing arrays or maps with encoded elements, keys or values. ContainerRowSerde::compare used to access base vector without first checking that encodings didn't add nulls. I.e. it used to call v->wrappedVector()->isNullAt(v->wrappedIndex (index)) without first checking that v->isNullAt(index) is false. When v->isNullAt(index) is null v->wrappedIndex(index) may be out of range or incorrect causing either a crash or wrong results. Pull Request resolved: facebookincubator#6767 Reviewed By: laithsakka Differential Revision: D49684737 Pulled By: mbasmanova fbshipit-source-id: 021ec731ee4efe395c30a07bad96f06a77f26ad8
- Loading branch information
1 parent
d1c7bd9
commit 8a5e49a
Showing
2 changed files
with
72 additions
and
4 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