Skip to content

Commit ed64d43

Browse files
fixed bug related to lang
1 parent 3319fe9 commit ed64d43

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
@@ -376,7 +376,8 @@ func (qs *queryState) handleValuePostings(ctx context.Context, args funcArgs) er
376376

377377
outputs := make([]*pb.Result, numGo)
378378
listType := schema.State().IsList(q.Attr)
379-
pickMultiplePostings := q.DoCount || q.ExpandAll || listType || len(q.Langs) > 0
379+
hasLang := schema.State().HasLang(q.Attr)
380+
getMultiplePosting := q.DoCount || q.ExpandAll || listType || hasLang
380381
//pickMultiplePostings := true
381382

382383
calculate := func(start, end int) error {
@@ -397,7 +398,7 @@ func (qs *queryState) handleValuePostings(ctx context.Context, args funcArgs) er
397398
var vals []types.Val
398399
fcs := &pb.FacetsList{FacetsList: make([]*pb.Facets, 0)} // TODO Figure out how it is stored
399400

400-
if !pickMultiplePostings {
401+
if !getMultiplePosting {
401402
pl, _ := qs.cache.GetSinglePosting(key)
402403
if pl == nil {
403404
out.UidMatrix = append(out.UidMatrix, &pb.List{})

0 commit comments

Comments
 (0)