forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix hang bug in partial aggregation. (facebookincubator#5050)
Summary: Pull Request resolved: facebookincubator#5050 The bug was triggered in the following way: - In HashAggregation::addInput() for a partial aggregation abandonPartialAggregationEarly() returned true and we set partialFull_ to true. - At the same time grouping set didn't have any new distinct groups and set newDistincts_ to false. - HashAggregation operator will then keep returning null from getOutput() and false from needsInput() thus putting Driver::runInternal into the infinite loop and hanging the query. The fix is to detect such corner case and unblock by resetting partialFull_ flag. Reviewed By: xiaoxmeng, Yuhta Differential Revision: D46214290 fbshipit-source-id: 8094763b4bb302aae89dd09ffa4ec63bc2fd87c8
- Loading branch information
1 parent
4d9e533
commit 2cd5ff6
Showing
2 changed files
with
62 additions
and
8 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