drill
drill copied to clipboard
DRILL-4521: Map variance() and stddev() to var_samp() and stddev_samp() respectiv…
…ely, and allow for DrillReduceAggregateRule to apply to them
Right now, variance() and stddev() is not mapped to var_samp() and stddev_samp() respectively, and they cannot be reduced to sums of squares (by DrillReduceAggregateRule). DrillReduceAggregateRule allows variance/stddev functions to be aggregated over 2-phase aggregation. Without this, stddev/variance is always done in a single phase aggregation. Added test cases to verify.
+1