forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix SelectivityVector::resize (facebookincubator#1303)
Summary: I noticed that sometimes the number of output rows for streaming aggregation is greater than number of input rows. This should never be the case as aggregation must not increase cardinality. Turns out there was a bug in SelectivityVector::resize() which is used in GroupingSet::addRemainingInput(). SelectivityVector::resize() when called on a vector whose size is a multiple of 64 incorrectly marked last 64 bits as "selected" before resizing. This commit fixes SelectivityVector::resize() and updates GroupingSet::addRemainingInput() to call resize() before cleanAll() "just in case". Pull Request resolved: facebookincubator#1303 Reviewed By: kgpai Differential Revision: D35205252 Pulled By: mbasmanova fbshipit-source-id: a74226813039c3aa28b430a060fdb4101226754f
- Loading branch information
1 parent
eb5545f
commit 0758019
Showing
3 changed files
with
11 additions
and
6 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