Skip to content

Commit b887328

Browse files
committed
fixed failing tests
1 parent 8bd0097 commit b887328

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

worker/task.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2553,8 +2553,6 @@ func (qs *queryState) handleHasWithOrderFunction(ctx context.Context, q *pb.Quer
25532553
Reverse: rev,
25542554
CheckInclusion: checkInclusion,
25552555
Function: func(l *posting.List, pk x.ParsedKey) error {
2556-
fmt.Println(pk, q.Offset, q.First, len(result.Uids))
2557-
25582556
pl, err := l.Uids(posting.ListOptions{ReadTs: q.ReadTs})
25592557
if err != nil {
25602558
return err
@@ -2580,6 +2578,9 @@ func (qs *queryState) handleHasWithOrderFunction(ctx context.Context, q *pb.Quer
25802578
if err != nil {
25812579
return err
25822580
}
2581+
sort.Slice(result.Uids, func(i, j int) bool {
2582+
return result.Uids[i] < result.Uids[j]
2583+
})
25832584
out.UidMatrix = append(out.UidMatrix, result)
25842585
return nil
25852586
}

0 commit comments

Comments
 (0)