**What is the bug?** SUM and AVG should return NULL if all the records are NULL. This applies with and without a GROUP BY clause. Check `CalciteStatsCommandIT.testGroupByNullValue()`