Skip to content

Commit

Permalink
Merge pull request #6293 from influxdata/nc-percentile-selector
Browse files Browse the repository at this point in the history
Update Percentile to preserve Aux fields since its a selector
  • Loading branch information
Nathaniel Cook committed Apr 12, 2016
2 parents f187f89 + 6ae62e9 commit 93a76ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions influxql/call_iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
}
}

Expand All @@ -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}}
}
}

Expand Down

0 comments on commit 93a76ee

Please sign in to comment.