From 592a191aee6b46dc353f5d9c49615cbcb76ee9f2 Mon Sep 17 00:00:00 2001 From: Yuce Tekol Date: Fri, 31 May 2019 17:21:44 +0300 Subject: [PATCH] translate key into Pair only for MinRow, MaxRow --- executor.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/executor.go b/executor.go index 12789c3dd..9f0ee8dac 100644 --- a/executor.go +++ b/executor.go @@ -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 } }