Skip to content

Commit b35bb40

Browse files
committed
Update for dates
1 parent f2ed8ce commit b35bb40

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

astra-db-client/src/test/java/com/dtsx/astra/sdk/AstraDBTestSuiteIT.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,18 @@ public void shouldFindAndExistsAndNotEquals() {
528528
andCriteriaList.add(criteria2);
529529
existAndNotEquals.setFilter(Map.of("$and", andCriteriaList));
530530
Assertions.assertEquals(2, collectionVector.find(existAndNotEquals).count());
531+
532+
SelectQuery query2 = SelectQuery.builder().withJsonFilter("{" +
533+
"\"$and\":[" +
534+
" {" +
535+
"\"product_price\": {\"$exists\":true}" +
536+
"}," +
537+
"{" +
538+
"\"product_price\":{\"$ne\":9.99}}]" +
539+
"}")
540+
.build();
541+
Assertions.assertEquals(2, collectionVector.find(query2).count());
542+
531543
}
532544

533545
// ----------------------------------------

0 commit comments

Comments
 (0)