@@ -96,7 +96,7 @@ func CompareBatches(t *testing.T, expected, actual *batch.Batch) {
96
96
return
97
97
}
98
98
if expected == nil || actual == nil {
99
- t .Fatalf ("one batch is nil, the other is not. Expected: %!v(MISSING) , Actual: %!v(MISSING) " , expected , actual )
99
+ t .Fatalf ("one batch is nil, the other is not. Expected: %v , Actual: %v " , expected , actual )
100
100
}
101
101
102
102
require .Equal (t , expected .RowCount (), actual .RowCount (), "row count mismatch" )
@@ -106,11 +106,11 @@ func CompareBatches(t *testing.T, expected, actual *batch.Batch) {
106
106
require .Equal (t , len (expected .Attrs ), len (actual .Attrs ), "attribute count mismatch" )
107
107
108
108
for i := range expected .Attrs {
109
- require .Equal (t , expected .Attrs [i ], actual .Attrs [i ], "attribute name mismatch at index %!d(MISSING) " , i )
109
+ require .Equal (t , expected .Attrs [i ], actual .Attrs [i ], "attribute name mismatch at index %d " , i )
110
110
}
111
111
112
112
for i := range expected .Vecs {
113
- require .True (t , CompareVectors (expected .Vecs [i ], actual .Vecs [i ]), "vector content mismatch at index %!d(MISSING) " , i )
113
+ require .True (t , CompareVectors (expected .Vecs [i ], actual .Vecs [i ]), "vector content mismatch at index %d " , i )
114
114
}
115
115
116
116
require .Equal (t , len (expected .Aggs ), len (actual .Aggs ), "aggregator count mismatch" )
@@ -119,6 +119,6 @@ func CompareBatches(t *testing.T, expected, actual *batch.Batch) {
119
119
require .NoError (t , err )
120
120
actualBytes , err := aggexec .MarshalAggFuncExec (actual .Aggs [i ])
121
121
require .NoError (t , err )
122
- require .Equal (t , expectedBytes , actualBytes , "aggregator state mismatch at index %!d(MISSING) " , i )
122
+ require .Equal (t , expectedBytes , actualBytes , "aggregator state mismatch at index %d " , i )
123
123
}
124
124
}
0 commit comments