If I do an Aggregate_SUM on a Group from a DataFrame with no rows, instead of returning 0 like I would expect, it fails at the top of LoadMaps. This is because Aggregation calls LoadMaps at the end to build the resulting DataFrame, but an empty map slice is an error for LoadMaps.
In this case, I think it would be best for Aggregate to never call LoadMaps with an empty map slice, but rather insert the zero value appropriate for whatever AggregationType the user picked for all empty groups.
If I do an
Aggregate_SUM
on aGroup
from aDataFrame
with no rows, instead of returning 0 like I would expect, it fails at the top ofLoadMaps
. This is becauseAggregation
callsLoadMaps
at the end to build the resultingDataFrame
, but an empty map slice is an error forLoadMaps
.In this case, I think it would be best for
Aggregate
to never callLoadMaps
with an empty map slice, but rather insert the zero value appropriate for whateverAggregationType
the user picked for all empty groups.To reproduce: