Repository navigation
Commit ae194a4
[fix](nereids) Keep every Variant argument of a multi-argument explode whole
A multi-argument explode generates as many rows as its longest array
argument, so every argument shapes the output even when its generated field
is never read. AccessPathPlanCollector kept the whole container only for the
Variant arguments whose generated field the query referenced. In
SELECT x1['k'], v2['k'] FROM t LATERAL VIEW explode(v1, v2) e AS x1, x2
v2 was left with the narrow path [v2, k]; a native Parquet read could then
project only that shredded leaf of v2, and explode, which casts the whole v2
to an array, fails on the partial value.
Collect the whole container of every ordinary Variant argument of a
multi-argument explode, as for the single-argument form.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>1 parent 78b5d95 commit ae194a4
2 files changed
Lines changed: 41 additions & 3 deletions
File tree
- fe/fe-core/src
- main/java/org/apache/doris/nereids/rules/rewrite
- test/java/org/apache/doris/nereids/rules/rewrite
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
113 | 125 | | |
114 | 126 | | |
115 | 127 | | |
| |||
131 | 143 | | |
132 | 144 | | |
133 | 145 | | |
134 | | - | |
135 | | - | |
136 | | - | |
| 146 | + | |
| 147 | + | |
137 | 148 | | |
138 | 149 | | |
139 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
114 | 120 | | |
115 | 121 | | |
116 | 122 | | |
| |||
567 | 573 | | |
568 | 574 | | |
569 | 575 | | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
570 | 597 | | |
571 | 598 | | |
572 | 599 | | |
| |||
0 commit comments