From 6ae62e964445e4627e36adaf145af8a6fed7355d Mon Sep 17 00:00:00 2001 From: Nathaniel Cook Date: Tue, 12 Apr 2016 13:34:50 -0600 Subject: [PATCH] update Percentile to preserve Aux fields since its a selector --- influxql/call_iterator.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/influxql/call_iterator.go b/influxql/call_iterator.go index 2eeb20dda70..5b1c2b71ca7 100644 --- a/influxql/call_iterator.go +++ b/influxql/call_iterator.go @@ -988,7 +988,7 @@ func NewFloatPercentileReduceSliceFunc(percentile float64) FloatReduceSliceFunc } sort.Sort(floatPointsByValue(a)) - return []FloatPoint{{Time: ZeroTime, Value: a[i].Value}} + return []FloatPoint{{Time: ZeroTime, Value: a[i].Value, Aux: a[i].Aux}} } } @@ -1003,7 +1003,7 @@ func NewIntegerPercentileReduceSliceFunc(percentile float64) IntegerReduceSliceF } sort.Sort(integerPointsByValue(a)) - return []IntegerPoint{{Time: ZeroTime, Value: a[i].Value}} + return []IntegerPoint{{Time: ZeroTime, Value: a[i].Value, Aux: a[i].Aux}} } }