presto-main/src/main/java/io/prestosql/operator/aggregation/IntervalDayToSecondAverageAggregation.java/IntervalDayToSecondAverageAggregation/output
class IntervalDayToSecondAverageAggregation:    @OutputFunction(StandardTypes.INTERVAL_DAY_TO_SECOND)
    public static void output(LongAndDoubleState state, BlockBuilder out)
    {
        long count = state.getLong();
        if (count == 0) {
            out.appendNull();
        }
        else {
            double value = state.getDouble();
            INTERVAL_DAY_TIME.writeLong(out, round(value / count));
        }
    }