Changeset: a21153ff6536 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/a21153ff6536
Added Files:
        sql/test/BugTracker-2026/Tests/7954-exp_visitor-crash.test
Modified Files:
        sql/test/BugTracker-2026/Tests/All
Branch: Dec2025
Log Message:

Add test for #7954


diffs (52 lines):

diff --git a/sql/test/BugTracker-2026/Tests/7954-exp_visitor-crash.test 
b/sql/test/BugTracker-2026/Tests/7954-exp_visitor-crash.test
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2026/Tests/7954-exp_visitor-crash.test
@@ -0,0 +1,39 @@
+-- adapted query without the last 'NOT IN (SELECT ...)' part works.
+query T nosort
+SELECT COUNT ( * ) = 0 AS x
+  FROM ( SELECT CAST( 55 AS NUMERIC ) AS x
+           FROM ( SELECT 1 AS x ) AS x
+         UNION
+         SELECT 0 AS x GROUP BY ROLLUP ( x )
+         UNION
+         SELECT 3 AS x
+       )
+ WHERE levenshtein ( '\xf4\x8f\xbf\xbf' , 2 , 1 , 1 )
+----
+False
+
+-- the orginal reported query
+-- it crashes in exp_visitor (v=0x7f33e2035790, rel=0x7f33ac1be2d0, 
e=0xdbdbdbdbdbdbdbdb, depth=0, exp_rewriter=0x7f3432fe03c4 
<exp_reset_card_and_freevar_set_physical_type>, topdown=false, 
relations_topdown=false, visit_relations_once=false, changed=0x7f33e20352ff) at 
sql/server/rel_rel.c:2209
+query T nosort
+SELECT COUNT ( * ) = 0 AS x
+  FROM ( SELECT CAST( 55 AS NUMERIC ) AS x
+           FROM ( SELECT 1 AS x ) AS x
+         UNION
+         SELECT 0 AS x GROUP BY ROLLUP ( x )
+         UNION
+         SELECT 3 AS x
+       )
+ WHERE levenshtein ( '\xf4\x8f\xbf\xbf' , 2 , 1 , 1 ) NOT IN
+       ( SELECT right_shift ( 8 , 2 )
+          GROUP BY x
+          HAVING avg ( DISTINCT x ) < 3
+         EXCEPT
+         SELECT 2 AS x
+         UNION
+         SELECT 3 AS x
+          GROUP BY CUBE ( x , x , x )
+          HAVING NOT - - ( EXISTS ( SELECT 1 ) ) = ANY ( NOT MAX ( - 17 ) < 
AVG ( x ) )
+       )
+----
+False
+
diff --git a/sql/test/BugTracker-2026/Tests/All 
b/sql/test/BugTracker-2026/Tests/All
--- a/sql/test/BugTracker-2026/Tests/All
+++ b/sql/test/BugTracker-2026/Tests/All
@@ -139,3 +139,4 @@ KNOWNFAIL?7950-exp_set_type-crash
 KNOWNFAIL?7951-exp_visitor-crash
 KNOWNFAIL?7952-rel_find_exp_and_corresponding_rel_-assert-failure
 KNOWNFAIL?7953-list_append_node-crash
+KNOWNFAIL?7954-exp_visitor-crash
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to