Commit 317d037
Handle parenthesized literals in nested arrays for EXPLAIN output
When arrays contain parenthesized literals like [[((NULL))]], they should
be rendered as nested Function array calls, not as Literal Array format.
Update containsNonLiteralExpressions to detect parenthesized literals
so nested arrays containing them use the correct Function array format.
Fixes tests:
- 01621_summap_check_types/stmt4
- 01635_sum_map_fuzz/stmt4
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 67ba7b0 commit 317d037
3 files changed
Lines changed: 8 additions & 11 deletions
File tree
- internal/explain
- parser/testdata
- 01621_summap_check_types
- 01635_sum_map_fuzz
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| 308 | + | |
308 | 309 | | |
309 | 310 | | |
310 | | - | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
311 | 316 | | |
312 | 317 | | |
313 | 318 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
0 commit comments