[ 
https://issues.apache.org/jira/browse/ASTERIXDB-2458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16861565#comment-16861565
 ] 

ASF subversion and git services commented on ASTERIXDB-2458:
------------------------------------------------------------

Commit 01423da8a2c006706a89e21e852799eae33d35ef in asterixdb's branch 
refs/heads/master from Ali Alsuliman
[ https://gitbox.apache.org/repos/asf?p=asterixdb.git;h=01423da ]

[ASTERIXDB-2458][COMP] Fix min/max functions with group by

- user model changes: no
- storage format changes: no
- interface changes: no

Details:
In a sort-group-by operator, an aggregate function has a merging
aggregate function that will be used when merging the run files
if they were generated. The merging aggregate function of the local
min/max aggregate function should be different from the merging
aggregate function of the global min/max. For local min/max, the
merging aggregate function should propagate system_null if the
aggregation is system_null. Also, the global min/max should handle
finishPartial() different from finish(). finishPartial()
should not output NULL if the aggregation is system_null since the
aggregation is still going on.

- added functions to be intermediate steps for local aggregation.
- implemented logic for finishPartial()
- added test cases for strict_min/max with group by

Change-Id: Ie0551b091b9adbbbd51158dbd36124a7184bdce0
Reviewed-on: https://asterix-gerrit.ics.uci.edu/3434
Contrib: Jenkins <[email protected]>
Sonar-Qube: Jenkins <[email protected]>
Tested-by: Jenkins <[email protected]>
Integration-Tests: Jenkins <[email protected]>
Reviewed-by: Ali Alsuliman <[email protected]>
Reviewed-by: Dmitry Lychagin <[email protected]>


> Compilation exception when if_null(), if_missing(), if_missing_or_null() are 
> provided with certain kinds of arguments
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: ASTERIXDB-2458
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2458
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: FUN - Functions
>    Affects Versions: 0.9.3
>            Reporter: Ali Alsuliman
>            Assignee: Ali Alsuliman
>            Priority: Major
>             Fix For: 0.9.4.2
>
>
> if_null(), if_missing(), if_missing_or_null() would throw compilation 
> exception for certain kinds of arguments. One example is if_null(int, 
> record). The cause is related to trying to cast the arguments to the type 
> that the function wants to return.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to