Commit 5bb6e5e
Recursively check nested arrays for non-literal expressions in EXPLAIN AST
When array literals contain nested arrays with non-literal expressions
(like identifiers or binary operations), they should be output as nested
Function array calls, not as a single Literal node. This adds a recursive
check containsNonLiteralExpressionsRecursive that properly detects
expressions like [[[number]],[[number + 1],...]] at any nesting depth.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent aed95c0 commit 5bb6e5e
File tree
4 files changed
+37
-11
lines changed- internal/explain
- parser/testdata
- 00504_mergetree_arrays_rw
- 01656_test_query_log_factories_info
- 02183_array_tuple_literals_remote
4 files changed
+37
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
225 | 229 | | |
226 | 230 | | |
227 | 231 | | |
| |||
410 | 414 | | |
411 | 415 | | |
412 | 416 | | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
413 | 447 | | |
414 | 448 | | |
415 | 449 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments