Clone
Hussain Towaileb <HussainHT@Gmail.com>
committed
on 17 Mar
[ASTERIXDB-2689][FUN] Agg Avg: skip and warn for invalid values
- user model changes: no
- storage format changes: no
- interface changes: n… Show more
[ASTERIXDB-2689][FUN] Agg Avg: skip and warn for invalid values

- user model changes: no

- storage format changes: no

- interface changes: no

Details:

- Currently, the aggregate avg function throws an exception

 when an invalid (non-numeric but not null or missing) value

 is encountered, this patch changes the behavior to skip

 the invalid value (treat it as null) and issue a warning.

- Added test cases for serializable aggregate avg (when

 using hash group by).

Change-Id: I32037e0f178a84555ac868547eed5762e980f010

Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/5183

Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Reviewed-by: Hussain Towaileb <hussainht@gmail.com>

Reviewed-by: Dmitry Lychagin <dmitry.lychagin@couchbase.com>

Show less