Skip to content

Commit 366388b

Browse files
committed
[ga-format-pr] Run ./format_repo.sh to fix formatting
1 parent e298720 commit 366388b

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

sql/expression/function/aggregation/std_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,3 @@ func TestStd(t *testing.T) {
9494
})
9595
}
9696
}
97-

sql/expression/function/aggregation/unary_agg_buffers.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package aggregation
33
import (
44
"fmt"
55
"math"
6-
"reflect"
6+
"reflect"
77

88
"github.com/cespare/xxhash/v2"
99
"github.com/shopspring/decimal"
@@ -711,9 +711,9 @@ func (s *stdDevPopBuffer) Update(ctx *sql.Context, row sql.Row) error {
711711
return nil
712712
}
713713

714-
s.newMean = s.oldMean + (val - s.oldMean) / float64(s.count)
715-
s.newVar = s.oldVar + (val - s.oldMean) * (val - s.newMean)
716-
s.oldVar = s.newVar
714+
s.newMean = s.oldMean + (val-s.oldMean)/float64(s.count)
715+
s.newVar = s.oldVar + (val-s.oldMean)*(val-s.newMean)
716+
s.oldVar = s.newVar
717717
s.oldMean = s.newMean
718718

719719
return nil
@@ -729,4 +729,4 @@ func (s *stdDevPopBuffer) Eval(ctx *sql.Context) (interface{}, error) {
729729

730730
// Dispose implements the Disposable interface.
731731
func (s *stdDevPopBuffer) Dispose() {
732-
}
732+
}

sql/expression/function/aggregation/window_functions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1459,4 +1459,4 @@ func (s *StdDevPopAgg) Compute(ctx *sql.Context, interval sql.WindowInterval, bu
14591459
return v
14601460
}
14611461
return nil
1462-
}
1462+
}

0 commit comments

Comments
 (0)