mirror of
https://github.com/apache/impala.git
synced 2026-02-02 06:00:36 -05:00
The calculation for num_nulls in the incremental stats code path initialized the counter to -1 instead of 0. This meant that, if there were no nulls (reasonably common), the num_nulls counter would be set to -1, indicating unknown, rather than 0. This simply fixes the initialization and updates the tests. Change-Id: Ie42103ad21d719cac45abc160c8d5422dd33fb28 Reviewed-on: http://gerrit.cloudera.org:8080/13378 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>