diff --git a/entity-service-impl/src/main/java/org/hypertrace/entity/query/service/EntityQueryServiceImpl.java b/entity-service-impl/src/main/java/org/hypertrace/entity/query/service/EntityQueryServiceImpl.java index 2039b195..d682dd04 100644 --- a/entity-service-impl/src/main/java/org/hypertrace/entity/query/service/EntityQueryServiceImpl.java +++ b/entity-service-impl/src/main/java/org/hypertrace/entity/query/service/EntityQueryServiceImpl.java @@ -6,7 +6,6 @@ import static java.util.Objects.isNull; import static java.util.stream.Collectors.joining; import static java.util.stream.Collectors.toUnmodifiableList; -import static org.hypertrace.core.documentstore.expression.operators.RelationalOperator.EQ; import static org.hypertrace.core.documentstore.expression.operators.RelationalOperator.IN; import static org.hypertrace.core.documentstore.model.options.ReturnDocumentType.NONE; import static org.hypertrace.entity.data.service.v1.AttributeValue.VALUE_LIST_FIELD_NUMBER; @@ -343,10 +342,7 @@ public void update(EntityUpdateRequest request, StreamObserver r // Finally, return the selections List documents = getProjectedDocuments( - maybeTenantId.get(), - request.getEntityIdsList(), - request.getSelectionList(), - requestContext); + request.getEntityIdsList(), request.getSelectionList(), requestContext); responseObserver.onNext( convertDocumentsToResultSetChunk(documents, request.getSelectionList())); @@ -535,7 +531,6 @@ private JSONDocument convertToJsonDocument(LiteralConstant literalConstant) { } private List getProjectedDocuments( - final String tenantId, final Iterable entityIds, final List selectionList, final RequestContext requestContext) @@ -555,11 +550,6 @@ private List getProjectedDocuments( IdentifierExpression.of(EntityServiceConstants.ENTITY_ID), IN, ConstantExpression.ofStrings(entityIdList))) - .expression( - RelationalExpression.of( - IdentifierExpression.of(EntityServiceConstants.TENANT_ID), - EQ, - ConstantExpression.of(tenantId))) .build(); final org.hypertrace.core.documentstore.query.Query query =