This is an automated email from the ASF dual-hosted git repository.

ntimofeev pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cayenne.git


The following commit(s) were added to refs/heads/master by this push:
     new 5dc311b10 CAY-2906 In-memory evaluation of `(not) exists` expressions
5dc311b10 is described below

commit 5dc311b1035a7614035cc1150b4ff91d0767663b
Author: Nikita Timofeev <[email protected]>
AuthorDate: Wed Dec 10 18:22:52 2025 +0400

    CAY-2906 In-memory evaluation of `(not) exists` expressions
---
 .../src/test/java/org/apache/cayenne/exp/parser/ASTExistsIT.java    | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 
a/cayenne/src/test/java/org/apache/cayenne/exp/parser/ASTExistsIT.java 
b/cayenne/src/test/java/org/apache/cayenne/exp/parser/ASTExistsIT.java
index c49399b96..812a7e06e 100644
--- a/cayenne/src/test/java/org/apache/cayenne/exp/parser/ASTExistsIT.java
+++ b/cayenne/src/test/java/org/apache/cayenne/exp/parser/ASTExistsIT.java
@@ -117,12 +117,15 @@ public class ASTExistsIT extends RuntimeCase {
     }
 
     private void doEvaluateNoQuery(Expression exp) {
-        List<Artist> artistSelected = ObjectSelect.query(Artist.class, 
exp).select(context);
+        List<Artist> artistSelected = ObjectSelect.query(Artist.class, exp)
+                .orderBy(Artist.ARTIST_ID_PK_PROPERTY.asc())
+                .select(context);
 
         List<Artist> artists = ObjectSelect.query(Artist.class)
                 .prefetch(Artist.PAINTING_ARRAY.disjoint())
                 
.prefetch(Artist.PAINTING_ARRAY.dot(Painting.TO_PAINTING_INFO).disjoint())
                 
.prefetch(Artist.PAINTING_ARRAY.dot(Painting.TO_GALLERY).disjoint())
+                .orderBy(Artist.ARTIST_ID_PK_PROPERTY.asc())
                 .select(context);
 
         queryInterceptor.runWithQueriesBlocked(() -> {
@@ -138,6 +141,7 @@ public class ASTExistsIT extends RuntimeCase {
                 .prefetch(Artist.PAINTING_ARRAY.disjoint())
                 
.prefetch(Artist.PAINTING_ARRAY.dot(Painting.TO_PAINTING_INFO).disjoint())
                 
.prefetch(Artist.PAINTING_ARRAY.dot(Painting.TO_GALLERY).disjoint())
+                .orderBy(Artist.ARTIST_ID_PK_PROPERTY.asc())
                 .select(context);
 
         List<Artist> artistsFiltered = exp.filterObjects(artists);

Reply via email to