Repository navigation
Commit f2869f3
fix: keep the recovery projection for a computed same-name column
`split_and_push_projection` decided if it needs a recovery projection from the
set of unqualified field names of the pushed plan. A name says nothing about the
value behind it. A projection such as `(- t.a) AS a, t.s, get_field(t.s, "b") AS
__datafusion_extracted_1` keeps every name when the extraction goes below it,
but the pushed plan exposes the table column `t.a` where the projection computed
`- t.a`. The recovery projection went away and the computed column became its
own input column.
The recovery projection now also stays when a recovery expression computes a
value, that is, when it is not a pass-through of a column. The name comparison
stays for the leaked-column case that it was written for.
Closes apache#25414
Co-Authored-By: Claude Fable 5.1 <[email protected]>1 parent 242b96c commit f2869f3
1 file changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1111 | 1111 | | |
1112 | 1112 | | |
1113 | 1113 | | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
1114 | 1126 | | |
1115 | 1127 | | |
1116 | 1128 | | |
| |||
1122 | 1134 | | |
1123 | 1135 | | |
1124 | 1136 | | |
1125 | | - | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
1126 | 1141 | | |
1127 | 1142 | | |
1128 | 1143 | | |
| |||
0 commit comments