@@ -79,7 +79,7 @@ func getLatest15MinInterval(ctx context.Context, b testing.TB, engine *query.Loc
7979 },
8080 nil ,
8181 ).Execute (ctx ,
82- func (ctx context.Context , r arrow.Record ) error {
82+ func (_ context.Context , r arrow.Record ) error {
8383 r .Retain ()
8484 result = r
8585 return nil
@@ -204,7 +204,7 @@ func getDeterministicLabelValuePairForType(ctx context.Context, engine *query.Lo
204204 if err := engine .ScanTable (tableName ).
205205 Filter (logicalplan .And (typeFilter ... )).
206206 Distinct (logicalplan .Col (label )).
207- Execute (ctx , func (ctx context.Context , r arrow.Record ) error {
207+ Execute (ctx , func (_ context.Context , r arrow.Record ) error {
208208 arr := r .Column (0 )
209209 for i := 0 ; i < arr .Len (); i ++ {
210210 if arr .IsNull (i ) {
@@ -257,7 +257,7 @@ func BenchmarkQuery(b *testing.B) {
257257 b .Run ("Types" , func (b * testing.B ) {
258258 for i := 0 ; i < b .N ; i ++ {
259259 if err := getTypesQuery (engine ).
260- Execute (ctx , func (ctx context.Context , r arrow.Record ) error {
260+ Execute (ctx , func (_ context.Context , r arrow.Record ) error {
261261 if r .NumRows () == 0 {
262262 b .Fatal ("expected at least one row" )
263263 }
@@ -270,7 +270,7 @@ func BenchmarkQuery(b *testing.B) {
270270
271271 b .Run ("Labels" , func (b * testing.B ) {
272272 for i := 0 ; i < b .N ; i ++ {
273- if err := getLabelsQuery (engine ).Execute (ctx , func (ctx context.Context , r arrow.Record ) error {
273+ if err := getLabelsQuery (engine ).Execute (ctx , func (_ context.Context , r arrow.Record ) error {
274274 if r .NumRows () == 0 {
275275 b .Fatal ("expected at least one row" )
276276 }
@@ -284,7 +284,7 @@ func BenchmarkQuery(b *testing.B) {
284284 b .Run ("Values" , func (b * testing.B ) {
285285 for i := 0 ; i < b .N ; i ++ {
286286 if err := getValuesForLabelQuery (engine , label ).
287- Execute (ctx , func (ctx context.Context , r arrow.Record ) error {
287+ Execute (ctx , func (_ context.Context , r arrow.Record ) error {
288288 if r .NumRows () == 0 {
289289 b .Fatal ("expected at least one row" )
290290 }
@@ -310,7 +310,7 @@ func BenchmarkQuery(b *testing.B) {
310310 logicalplan .Col ("stacktrace" ),
311311 },
312312 ).
313- Execute (ctx , func (ctx context.Context , r arrow.Record ) error {
313+ Execute (ctx , func (_ context.Context , r arrow.Record ) error {
314314 if r .NumRows () == 0 {
315315 b .Fatal ("expected at least one row" )
316316 }
@@ -337,7 +337,7 @@ func BenchmarkQuery(b *testing.B) {
337337 logicalplan .Col ("timestamp" ),
338338 },
339339 ).
340- Execute (ctx , func (ctx context.Context , r arrow.Record ) error {
340+ Execute (ctx , func (_ context.Context , r arrow.Record ) error {
341341 if r .NumRows () == 0 {
342342 b .Fatal ("expected at least one row" )
343343 }
@@ -360,7 +360,7 @@ func BenchmarkQuery(b *testing.B) {
360360 Filter (
361361 logicalplan .And (fullFilter ... ),
362362 ).
363- Execute (ctx , func (ctx context.Context , r arrow.Record ) error {
363+ Execute (ctx , func (_ context.Context , r arrow.Record ) error {
364364 if r .NumRows () == 0 {
365365 b .Fatal ("expected at least one row" )
366366 }
0 commit comments