translate key into Pair only for MinRow, MaxRow

This commit is contained in:
Yuce Tekol 2019-05-31 17:21:44 +03:00
parent 08f4ccb29b
commit 592a191aee
No known key found for this signature in database
GPG key ID: CB59E46D2FB90573

View file

@ -2755,6 +2755,10 @@ func (e *executor) translateResult(index string, idx *Index, call *pql.Call, res
if err != nil {
return nil, err
}
if call.Name == "MinRow" || call.Name == "MaxRow" {
result.Key = key
return result, nil
}
return Pair{Key: key, Count: result.Count}, nil
}
}