mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-07 11:27:50 +00:00
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.
This commit is contained in:
parent
7b30b91448
commit
d34e38f134
1 changed files with 0 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue