Skip to content

Commit ee7fd87

Browse files
author
Pradithya Aria
committed
Avoid returning error to caller when the query is successful but returns empty result.
1 parent f15a6a7 commit ee7fd87

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

serving/src/main/java/feast/serving/grpc/ServingGrpcService.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,6 @@ public void queryFeatures(Request request, StreamObserver<Response> responseObse
7777
Request validRequest = checkTimestampRange(request);
7878
Response response = feast.queryFeatures(validRequest);
7979

80-
if (response.getEntitiesCount() < 1) {
81-
responseObserver.onError(
82-
new StatusRuntimeException(
83-
Status.fromCode(NOT_FOUND)
84-
.withDescription("No value is found for the requested feature")));
85-
return;
86-
}
87-
8880
innerSpan.log("calling onNext");
8981
responseObserver.onNext(response);
9082
innerSpan.log("calling onCompleted");

0 commit comments

Comments
 (0)