presto-main/src/main/java/io/prestosql/operator/aggregation/RealCorrelationAggregation.java/RealCorrelationAggregation/corr
class RealCorrelationAggregation:    @OutputFunction(StandardTypes.REAL)
    public static void corr(@AggregationState CorrelationState state, BlockBuilder out)
    {
        double result = getCorrelation(state);
        if (Double.isFinite(result)) {
            long resultBits = floatToRawIntBits((float) result);
            REAL.writeLong(out, resultBits);
        }
        else {
            out.appendNull();
        }
    }