Commit 07e5902
committed
sql: harden recent change about DO block recursion
This commit reduces the max depth of recursion when evaluating routines
with `tail-call-optimization-enabled=false` (recently added in
7b879ef) from 10k to 100. We've just
seen a few cases where TestRandomSyntaxSQLSmith failed because DO block
didn't respect context cancellation within 5s. I've manually tried it
out a few times, and things worked, so my hypothesis is that extremely
deep stacks (that are produced with the TCO disabled) is the root cause
for slow cancellation, so let's just error out sooner.
This commit also brings back the skip of DO blocks in TestComposeCompare
(thinking there is that we should stabilize them in other tests first).
Release note: None1 parent 738c039 commit 07e5902
2 files changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
84 | 89 | | |
85 | 90 | | |
86 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| |||
0 commit comments