forked from apache/age
-
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 bug in aggregate function collect()
Fixes a bug where the collect functions aggtransfn is not called but the aggfinalfn is. While I'm not sure why this case happens, as it 'should' always call the aggtransfn, it crashes because the collect aggregate state (castate) hasn't been initialized and is still null. The fix is to have the aggfinalfn check for a null state and create the state for finalizing the empty '[]' results. Added a regression test for this case.
- Loading branch information
1 parent
08d75d8
commit e36983b
Showing
3 changed files
with
37 additions
and
2 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