Skip to content

Commit

Permalink
Add linear support for QueryNode.fill
Browse files Browse the repository at this point in the history
Add linear support for QueryNode.fill.

Add linear support for QueryNode.fill

Add linear support for QueryNode.fill..

Add linear support for QueryNode.fill
  • Loading branch information
SamuelToh committed Jun 15, 2017
1 parent ffca0dd commit 0447639
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Features

- [#1413](https://github.com/influxdata/kapacitor/issues/1413): Add subscriptions modes to InfluxDB subscriptions.
- [#1436](https://github.com/influxdata/kapacitor/issues/1436): Add linear fill support for QueryNode.

### Bugfixes

Expand Down
2 changes: 2 additions & 0 deletions batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ func newQueryNode(et *ExecutingTask, n *pipeline.QueryNode, l *log.Logger) (*Que
bn.query.Fill(influxql.NoFill, nil)
case "previous":
bn.query.Fill(influxql.PreviousFill, nil)
case "linear":
bn.query.Fill(influxql.LinearFill, nil)
default:
return nil, fmt.Errorf("unexpected fill option %s", fill)
}
Expand Down
1 change: 1 addition & 0 deletions pipeline/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ type QueryNode struct {
// - null - exhibits the same behavior as the default
// - previous - reports the value of the previous window
// - none - suppresses timestamps and values where the value is null
// - linear - reports the results of linear interpolation
Fill interface{}

// The name of a configured InfluxDB cluster.
Expand Down

0 comments on commit 0447639

Please sign in to comment.