Minor fix to TestHashAggregationOperator
@@ -454,7 +454,9 @@ public class TestHashAggregationOperator
public void testMultiSliceAggregationOutput(boolean hashEnabled)
{
// estimate the number of entries required to create 1.5 pages of results
- int fixedWidthSize = SIZE_OF_LONG + SIZE_OF_DOUBLE + SIZE_OF_DOUBLE;
+ // See InMemoryHashAggregationBuilder.buildTypes()
+ int fixedWidthSize = SIZE_OF_LONG + SIZE_OF_LONG + // Used by BigintGroupByHash, see BigintGroupByHash.TYPES_WITH_RAW_HASH
+ SIZE_OF_LONG + SIZE_OF_DOUBLE; // Used by COUNT and LONG_AVERAGE aggregators;
int multiSlicePositionCount = (int) (1.5 * PageBuilderStatus.DEFAULT_MAX_PAGE_SIZE_IN_BYTES / fixedWidthSize);
multiSlicePositionCount = Math.min((int) (1.5 * DEFAULT_MAX_BLOCK_SIZE_IN_BYTES / SIZE_OF_DOUBLE), multiSlicePositionCount);
