Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Avoid returning error to caller when the query is successful but retu…
…rns empty result.
  • Loading branch information
Pradithya Aria committed Dec 12, 2018
commit ee7fd87d94697e9e23bf971ecf0a3977ff0ba6f9
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,6 @@ public void queryFeatures(Request request, StreamObserver<Response> responseObse
Request validRequest = checkTimestampRange(request);
Response response = feast.queryFeatures(validRequest);

if (response.getEntitiesCount() < 1) {
responseObserver.onError(
new StatusRuntimeException(
Status.fromCode(NOT_FOUND)
.withDescription("No value is found for the requested feature")));
return;
}

innerSpan.log("calling onNext");
responseObserver.onNext(response);
innerSpan.log("calling onCompleted");
Expand Down