forked from facebookincubator/velox
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the intermediate type of approx_percentile to
ROW
(#18386)
Summary: X-link: prestodb/presto#18386 Pull Request resolved: facebookincubator#2621 Before this change, intermediate aggregation node for `approx_percentile` in worker only sees a type signature of `VARBINARY -> VARBINARY`, thus not be able to figure out the actual value type and cannot perform the merge properly when the value type is not `DOUBLE`. This fix changes the intermediate result type to `ROW` so that we can get the value type from it and instantiate accumulator with proper type. Fix facebookincubator#2430 Reviewed By: mbasmanova Differential Revision: D39733152 fbshipit-source-id: f7476a9a4a2e92d7fdc976f388a07692787cada8
- Loading branch information
1 parent
0d0eb30
commit d8c377c
Showing
5 changed files
with
274 additions
and
196 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
Oops, something went wrong.