From d34e38f1342a1fef6c01591b8c045764bef69ed3 Mon Sep 17 00:00:00 2001 From: Travis Date: Thu, 26 Dec 2019 22:27:46 -0600 Subject: [PATCH] Remove empty field check in Inspect() The check for field existence is not necessary; since we add the `_id` field to every response then at the very least that field will be returned. This check was preventin a query like `select _id from ...` from returning any results. --- server/grpc.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/server/grpc.go b/server/grpc.go index a0ef90cbe..606732d6f 100644 --- a/server/grpc.go +++ b/server/grpc.go @@ -93,11 +93,6 @@ func (h grpcHandler) Inspect(req *pb.InspectRequest, stream pb.Pilosa_InspectSer } } - // If there are no matching fields, then don't return any records. - if len(fields) == 0 { - return nil - } - limit := req.Limit if limit == 0 { limit = defaultLimit