azure-sdk-for-java
azure-sdk-for-java copied to clipboard
[BUG] CriteriaType ARRAY_CONTAINS does not support the 3rd parameter of the function in azure-spring-data-cosmos
When building Criteria for CosmosQuery with CriteriaType.ARRAY_CONTAINS, there is no way to pass the 3rd parameter to ARRAY_CONTAINS() function.
Code example:
Criteria.getInstance(CriteriaType.ARRAY_CONTAINS, "metadata.usecases", List.of("{\"useCaseId\":\"123\"}"), Part.IgnoreCaseType.NEVER);
array-contains definition:
ARRAY_CONTAINS(<array_expr>, <expr> [, <bool_expr>])
bool_expr | A boolean expression indicating whether the search should check for a partial match (true) or a full match (false). If not specified, the default value is false.
Library/Libraries: com.azure:azure-spring-data-cosmos:5.9.1
Hi @cloudxpc someone from the Cosmos DB team will follow up shortly
@trande4884 can you please take a look at this, thanks!