diff --git a/influxql.gen.go b/influxql.gen.go index 50415e667..1a111a500 100644 --- a/influxql.gen.go +++ b/influxql.gen.go @@ -71,7 +71,7 @@ func floatPopulateAuxFieldsAndTags(ap *influxql.FloatPoint, fieldsAndTags []stri func (a *floatPointAggregator) AggregatePoint(name string, p edge.FieldsTagsTimeGetter) error { ap, err := convertFloatPoint(name, p, a.field, a.isSimpleSelector, a.topBottomInfo) if err != nil { - return nil + return err } a.aggregator.AggregateFloat(ap) return nil @@ -229,7 +229,7 @@ func integerPopulateAuxFieldsAndTags(ap *influxql.IntegerPoint, fieldsAndTags [] func (a *integerPointAggregator) AggregatePoint(name string, p edge.FieldsTagsTimeGetter) error { ap, err := convertIntegerPoint(name, p, a.field, a.isSimpleSelector, a.topBottomInfo) if err != nil { - return nil + return err } a.aggregator.AggregateInteger(ap) return nil @@ -387,7 +387,7 @@ func stringPopulateAuxFieldsAndTags(ap *influxql.StringPoint, fieldsAndTags []st func (a *stringPointAggregator) AggregatePoint(name string, p edge.FieldsTagsTimeGetter) error { ap, err := convertStringPoint(name, p, a.field, a.isSimpleSelector, a.topBottomInfo) if err != nil { - return nil + return err } a.aggregator.AggregateString(ap) return nil @@ -545,7 +545,7 @@ func booleanPopulateAuxFieldsAndTags(ap *influxql.BooleanPoint, fieldsAndTags [] func (a *booleanPointAggregator) AggregatePoint(name string, p edge.FieldsTagsTimeGetter) error { ap, err := convertBooleanPoint(name, p, a.field, a.isSimpleSelector, a.topBottomInfo) if err != nil { - return nil + return err } a.aggregator.AggregateBoolean(ap) return nil diff --git a/influxql.gen.go.tmpl b/influxql.gen.go.tmpl index fa3a653d0..413b21015 100644 --- a/influxql.gen.go.tmpl +++ b/influxql.gen.go.tmpl @@ -69,7 +69,7 @@ func {{.name}}PopulateAuxFieldsAndTags(ap *influxql.{{.Name}}Point, fieldsAndTag func (a *{{.name}}PointAggregator) AggregatePoint(name string, p edge.FieldsTagsTimeGetter) error { ap, err := convert{{.Name}}Point(name, p, a.field, a.isSimpleSelector, a.topBottomInfo) if err != nil { - return nil + return err } a.aggregator.Aggregate{{.Name}}(ap) return nil diff --git a/influxql.go b/influxql.go index 103656af9..4159e57bf 100644 --- a/influxql.go +++ b/influxql.go @@ -114,10 +114,10 @@ func (g *influxqlGroup) BatchPoint(bp edge.BatchPointMessage) (edge.Message, err return nil, nil } } - g.batchSize++ if err := g.rc.AggregatePoint(g.begin.Name(), bp); err != nil { g.n.diag.Error("failed to aggregate point in batch", err) } + g.batchSize++ return nil, nil }