From 78ac78fec9e11c4127af691462d552e6f668aebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20G=C3=B6rler?= Date: Tue, 3 Jun 2025 14:39:57 +0200 Subject: [PATCH 1/2] Document CDL Operators vs CAP Java Operators --- java/working-with-cql/query-api.md | 56 +++++++++++++++++------------- 1 file changed, 31 insertions(+), 25 deletions(-) diff --git a/java/working-with-cql/query-api.md b/java/working-with-cql/query-api.md index e7f61c100..4b6b01834 100644 --- a/java/working-with-cql/query-api.md +++ b/java/working-with-cql/query-api.md @@ -1474,8 +1474,14 @@ These comparison operators are supported: + + + + - + - + - + - - + @@ -1564,9 +1560,21 @@ GT + + + + + + @@ -1580,9 +1588,7 @@ LT - + @@ -1596,7 +1602,7 @@ LE -
Operator +
+ CAP Java + - Predicate + CDL Description @@ -1488,11 +1494,9 @@ These comparison operators are supported:
EQ= -EQ - - Test if this value equals a given value. NULL values might be treated as unknown resulting in a three-valued logic as in SQL. + Test if this value equals a given value. NULL values might be treated as unknown resulting in a three-valued logic as in SQL. Select.from("bookshop.Books") @@ -1502,11 +1506,9 @@ EQ
NE<> -NE - - Test if this value is NOT equal to a given value. NULL values might be treated as unknown resulting in a three-valued logic as in SQL. + Test if this value is NOT equal to a given value. NULL values might be treated as unknown resulting in a three-valued logic as in SQL. Select.from("bookshop.Books") @@ -1516,11 +1518,9 @@ NE
IS== -IS - - Test if this value equals a given value. NULL values are treated as any other value. + Test if this value equals a given value. NULL values are treated as any other value (Boolean logic). @@ -1532,11 +1532,9 @@ IS
IS NOT!= -IS NOT - - Test if this value is NOT equal to a given value. NULL values are treated as any other value. + Test if this value is NOT equal to a given value. NULL values are treated as any other value (Boolean logic). @@ -1548,9 +1546,7 @@ IS NOT
-GT -GT> Test if this value is greater than a given value.
GE>= -LT + Test if this value is greater than or equalt to a given value. + +Select.from("bookshop.Books") + .where(b -> b.get("stock") + .ge(5)); + +
LT< Test if this value is less than a given value.
-LE -LE<= Test if this value is less than or equal to a given value.
+ BETWEEN From 34ebb797a2ca30036ecd40442948b10f88c59a6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20G=C3=B6rler?= Date: Tue, 3 Jun 2025 14:41:09 +0200 Subject: [PATCH 2/2] Update java/working-with-cql/query-api.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- java/working-with-cql/query-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/working-with-cql/query-api.md b/java/working-with-cql/query-api.md index 4b6b01834..264a0347e 100644 --- a/java/working-with-cql/query-api.md +++ b/java/working-with-cql/query-api.md @@ -1562,7 +1562,7 @@ These comparison operators are supported:
GE>= - Test if this value is greater than or equalt to a given value. + Test if this value is greater than or equal to a given value.