diff --git a/CHANGELOG.md b/CHANGELOG.md index 3093941f215..0c69d1d526e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ - [#2906](https://github.com/influxdb/influxdb/pull/2906): Restrict replication factor to the cluster size - [#2905](https://github.com/influxdb/influxdb/pull/2905): Restrict clusters to 3 peers - [#2904](https://github.com/influxdb/influxdb/pull/2904): Re-enable server reporting. +- [#2917](https://github.com/influxdb/influxdb/pull/2917): Fix int64 field values. - [#2920](https://github.com/influxdb/influxdb/issues/2920): Ensure collectd database exists ## v0.9.0-rc33 [2015-06-09] diff --git a/influxql/functions.go b/influxql/functions.go index bed95218048..7b42b2e2ae0 100644 --- a/influxql/functions.go +++ b/influxql/functions.go @@ -1058,7 +1058,12 @@ func ReducePercentile(percentile float64) ReduceFunc { vals := v.([]interface{}) for _, v := range vals { - allValues = append(allValues, v.(float64)) + switch v.(type) { + case int64: + allValues = append(allValues, float64(v.(int64))) + case float64: + allValues = append(allValues, v.(float64)) + } } }