Skip to content

Commit 3e00a75

Browse files
committed
Add query hits recursion limit to sqllogictest
1 parent 2ea9bc9 commit 3e00a75

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

datafusion/sqllogictest/test_files/errors.slt

+14
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,17 @@ create table records (timestamp timestamp, value float) as values (
161161
'2021-01-01 00:00:00', 1.0,
162162
'2021-01-01 00:00:00', 2.0
163163
);
164+
165+
# Error number of nested expressions exceeds limit
166+
statement error DataFusion error: Invalid statement: sql parser error: recursion limit exceeded
167+
SELECT
168+
c1
169+
FROM
170+
aggregate_test_100
171+
WHERE
172+
c1=0 OR (c2=0 OR (c3=0 OR (c4=0 OR (c5=0 OR (c6=0 OR (c7=0 OR (c8=0 OR (c9=0 OR (c10=0 OR
173+
(c1=1 OR (c2=1 OR (c3=1 OR (c4=1 OR (c5=1 OR (c6=1 OR (c7=1 OR (c8=1 OR (c9=1 OR (c10=1 OR
174+
(c1=2 OR (c2=2 OR (c3=2 OR (c4=2 OR (c5=2 OR (c6=2 OR (c7=2 OR (c8=2 OR (c9=2 OR (c10=2 OR
175+
(c1=3 OR (c2=3 OR (c3=3 OR (c4=3 OR (c5=3 OR (c6=3 OR (c7=3 OR (c8=3 OR (c9=3 OR (c10=3 OR
176+
(c1=4 OR (c2=4 OR (c3=4 OR (c4=4 OR (c5=4 OR (c6=4 OR (c7=4 OR (c8=4 OR (c9=4 OR (c10=4
177+
)))))))))))))))))))))))))))))))))))))))))))))))));

0 commit comments

Comments
 (0)