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 arbitrary() to always return the first non-null value in Window o…
…peration (facebookincubator#8640) Summary: Pull Request resolved: facebookincubator#8640 The implementation of arbitrary() intends to always return the first non-null value, but it doesn't for complex-typed inputs when used in Window operation with incremental frames. This is because ArbitraryFunction::addSingleGroupRawInput() still updates the accumulator even if the accumulator already has a value. This diff fixes this issue by making ArbitraryFunction::addSingleGroupRawInput() return immediately if accumulator already has a value. This diff fixes facebookincubator#8593. Reviewed By: kgpai Differential Revision: D53328253 fbshipit-source-id: 803261dce0ec1fc52187947b1f9316dfd814c3fd
- Loading branch information
1 parent
a3a57cb
commit 7227ff8
Showing
3 changed files
with
41 additions
and
1 deletion.
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