Changeset: 443e25449d74 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/443e25449d74
Modified Files:
        monetdb5/modules/mal/pp_hash.c
        sql/test/BugTracker-2025/Tests/7650_right_join_crash.test
Branch: pp_hashjoin
Log Message:

output error during hash building and use that error in hashmark_init, because 
when no hash table is available we cannot output the correct number of rows for 
right/full outer.


diffs (31 lines):

diff --git a/monetdb5/modules/mal/pp_hash.c b/monetdb5/modules/mal/pp_hash.c
--- a/monetdb5/modules/mal/pp_hash.c
+++ b/monetdb5/modules/mal/pp_hash.c
@@ -452,6 +452,10 @@ OAHASHhashmark_init(Client ctx, bat *res
                err = createException(SQL, "oahash.hashmark_init", 
SQLSTATE(HY002) RUNTIME_OBJECT_MISSING);
                goto error;
        }
+       if (ht && ht->tsink && ht->tsink->error) {
+               err = ht->tsink->error;
+               goto error;
+       }
        if (payload && !is_bat_nil(*payload)) {
                hp = BATdescriptor(*payload);
                if (!hp) {
diff --git a/sql/test/BugTracker-2025/Tests/7650_right_join_crash.test 
b/sql/test/BugTracker-2025/Tests/7650_right_join_crash.test
--- a/sql/test/BugTracker-2025/Tests/7650_right_join_crash.test
+++ b/sql/test/BugTracker-2025/Tests/7650_right_join_crash.test
@@ -2,11 +2,7 @@ statement ok
 CREATE TABLE IF NOT EXISTS t1(c0 INTERVAL DAY,c2 DOUBLE)
 
 # without PIPELINE, it results in an error because the relational algebra 
doesn't allow for perfect lazy evaluation always
-#statement error /more than one match/
 # with PIPELINE, it produces the correct result: NULL | NULL | 0
-query III
+
+statement error /more than one match/
 SELECT ALL * FROM t1 RIGHT JOIN (VALUES (0)) AS subQuery1(col_1) ON ( t1.c0 < 
ANY(VALUES (t1.c0+t1.c0)) ) AND (VALUES (subQuery1.col_1), (EXISTS (VALUES 
(t1.c2))) )
-----
-NULL
-NULL
-0
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to