File tree Expand file tree Collapse file tree
datafusion/sqllogictest/test_files Expand file tree Collapse file tree Original file line number Diff line number Diff 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+ )))))))))))))))))))))))))))))))))))))))))))))))));
You can’t perform that action at this time.
0 commit comments