Skip to content

Commit 3ecfd1e

Browse files
committed
[ga-format-pr] Run ./format_repo.sh to fix formatting
1 parent c43ddc4 commit 3ecfd1e

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

sql/stats/filter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func Intersect(ctx *sql.Context, b1, b2 []sql.HistogramBucket, types []sql.Type)
8888
break
8989
}
9090
// if keys are equal, merge buckets
91-
if k == len(key1) - 1 {
91+
if k == len(key1)-1 {
9292
ret = append(ret, b1[i])
9393
i++
9494
j++

sql/stats/filter_test.go

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -986,31 +986,31 @@ func TestHistogramUnion(t *testing.T) {
986986
{
987987
types: []sql.Type{types.Int64, types.Int64},
988988
h1: []sql.HistogramBucket{
989-
&Bucket{BoundVal: []interface{}{1,1}},
990-
&Bucket{BoundVal: []interface{}{1,9}},
989+
&Bucket{BoundVal: []interface{}{1, 1}},
990+
&Bucket{BoundVal: []interface{}{1, 9}},
991991
},
992992
h2: []sql.HistogramBucket{
993-
&Bucket{BoundVal: []interface{}{9,9}},
993+
&Bucket{BoundVal: []interface{}{9, 9}},
994994
},
995995
exp: []sql.HistogramBucket{
996-
&Bucket{BoundVal: []interface{}{1,1}},
997-
&Bucket{BoundVal: []interface{}{1,9}},
998-
&Bucket{BoundVal: []interface{}{9,9}},
996+
&Bucket{BoundVal: []interface{}{1, 1}},
997+
&Bucket{BoundVal: []interface{}{1, 9}},
998+
&Bucket{BoundVal: []interface{}{9, 9}},
999999
},
10001000
},
10011001
{
10021002
types: []sql.Type{types.Int64, types.Int64},
10031003
h1: []sql.HistogramBucket{
1004-
&Bucket{BoundVal: []interface{}{1,9}},
1005-
&Bucket{BoundVal: []interface{}{9,9}},
1004+
&Bucket{BoundVal: []interface{}{1, 9}},
1005+
&Bucket{BoundVal: []interface{}{9, 9}},
10061006
},
10071007
h2: []sql.HistogramBucket{
1008-
&Bucket{BoundVal: []interface{}{1,1}},
1008+
&Bucket{BoundVal: []interface{}{1, 1}},
10091009
},
10101010
exp: []sql.HistogramBucket{
1011-
&Bucket{BoundVal: []interface{}{1,1}},
1012-
&Bucket{BoundVal: []interface{}{1,9}},
1013-
&Bucket{BoundVal: []interface{}{9,9}},
1011+
&Bucket{BoundVal: []interface{}{1, 1}},
1012+
&Bucket{BoundVal: []interface{}{1, 9}},
1013+
&Bucket{BoundVal: []interface{}{9, 9}},
10141014
},
10151015
},
10161016
}
@@ -1045,30 +1045,30 @@ func TestHistogramIntersect(t *testing.T) {
10451045
{
10461046
types: []sql.Type{types.Int64, types.Int64},
10471047
h1: []sql.HistogramBucket{
1048-
&Bucket{BoundVal: []interface{}{1,1}},
1049-
&Bucket{BoundVal: []interface{}{1,9}},
1048+
&Bucket{BoundVal: []interface{}{1, 1}},
1049+
&Bucket{BoundVal: []interface{}{1, 9}},
10501050
},
10511051
h2: []sql.HistogramBucket{
1052-
&Bucket{BoundVal: []interface{}{1,1}},
1053-
&Bucket{BoundVal: []interface{}{9,9}},
1052+
&Bucket{BoundVal: []interface{}{1, 1}},
1053+
&Bucket{BoundVal: []interface{}{9, 9}},
10541054
},
10551055
exp: []sql.HistogramBucket{
1056-
&Bucket{BoundVal: []interface{}{1,1}},
1056+
&Bucket{BoundVal: []interface{}{1, 1}},
10571057
},
10581058
},
10591059
{
10601060
types: []sql.Type{types.Int64, types.Int64},
10611061
h1: []sql.HistogramBucket{
1062-
&Bucket{BoundVal: []interface{}{1,1}},
1063-
&Bucket{BoundVal: []interface{}{9,9}},
1062+
&Bucket{BoundVal: []interface{}{1, 1}},
1063+
&Bucket{BoundVal: []interface{}{9, 9}},
10641064
},
10651065
h2: []sql.HistogramBucket{
1066-
&Bucket{BoundVal: []interface{}{1,1}},
1067-
&Bucket{BoundVal: []interface{}{9,9}},
1066+
&Bucket{BoundVal: []interface{}{1, 1}},
1067+
&Bucket{BoundVal: []interface{}{9, 9}},
10681068
},
10691069
exp: []sql.HistogramBucket{
1070-
&Bucket{BoundVal: []interface{}{1,1}},
1071-
&Bucket{BoundVal: []interface{}{9,9}},
1070+
&Bucket{BoundVal: []interface{}{1, 1}},
1071+
&Bucket{BoundVal: []interface{}{9, 9}},
10721072
},
10731073
},
10741074
}
@@ -1079,4 +1079,4 @@ func TestHistogramIntersect(t *testing.T) {
10791079
require.Equal(t, tt.exp, res)
10801080
})
10811081
}
1082-
}
1082+
}

0 commit comments

Comments
 (0)