flux icon indicating copy to clipboard operation
flux copied to clipboard

Push Down aggregates when Grouping

Open adamperlin opened this issue 7 years ago • 2 comments

From ifql created by nathanielc : influxdata/ifql#168

Currently the IFQL planner only pushes down aggregates if there is no grouping specified. This is because the aggregates are always performed on a per series basis. In order to push down the aggregates we need to teach the storage block type to be able to aggregate the aggregates. And we need to teach the planner when this is possible.

adamperlin avatar Jul 03 '18 22:07 adamperlin

We need a test for this. But it should wait until we have the "new" planner.

nathanielc avatar Jul 17 '18 22:07 nathanielc

https://github.com/influxdata/influxdb/blob/master/storage/reads/group_resultset.go#L298

ethanyzhang avatar Apr 08 '20 15:04 ethanyzhang