Commit 70ba67b
committed
refactor: extract LambdaExpr breaking change to apache#22853
Per maintainer request on PR apache#22689, the `LambdaExpr::try_new` /
`expressions::lambda(...)` signature change (adding `outer_columns_count`)
is being reviewed separately in apache#22853 because it's a
breaking change to the physical-expr public API and warrants its own
attention, distinct from this additive UDF.
This commit reverts the `lambda.rs` / `higher_order_function.rs` /
`planner.rs` files to their `upstream/main` state, removes the
sqllogictest file (every query in it uses `(k, v) -> body` lambdas that
require the upstream fix), and marks the unit tests that exercise
multi-parameter lambdas with
`#[ignore = "blocked on apache#22853: multi-param lambda projection fix"]`.
`transform_values_uses_keys_via_case` and
`transform_values_all_null_rows_returns_null_array` still pass because
the former references both `k` and `v` (so projection is a no-op) and
the latter short-circuits before evaluating the lambda. This PR will be
rebased onto main once apache#22853 merges, at which point the ignore
markers will be removed and the sqllogictest file restored.1 parent b342185 commit 70ba67b
5 files changed
Lines changed: 23 additions & 165 deletions
File tree
- datafusion
- functions-nested/src
- physical-expr/src
- expressions
- sqllogictest/test_files/map
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| 340 | + | |
340 | 341 | | |
341 | 342 | | |
342 | 343 | | |
| |||
389 | 390 | | |
390 | 391 | | |
391 | 392 | | |
| 393 | + | |
392 | 394 | | |
393 | 395 | | |
394 | 396 | | |
| |||
422 | 424 | | |
423 | 425 | | |
424 | 426 | | |
| 427 | + | |
425 | 428 | | |
426 | 429 | | |
427 | 430 | | |
| |||
440 | 443 | | |
441 | 444 | | |
442 | 445 | | |
| 446 | + | |
443 | 447 | | |
444 | 448 | | |
445 | 449 | | |
| |||
474 | 478 | | |
475 | 479 | | |
476 | 480 | | |
| 481 | + | |
477 | 482 | | |
478 | 483 | | |
479 | 484 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | 46 | | |
52 | 47 | | |
53 | 48 | | |
| |||
65 | 60 | | |
66 | 61 | | |
67 | 62 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 63 | + | |
| 64 | + | |
81 | 65 | | |
82 | 66 | | |
83 | 67 | | |
| |||
87 | 71 | | |
88 | 72 | | |
89 | 73 | | |
90 | | - | |
| 74 | + | |
91 | 75 | | |
92 | 76 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
| 77 | + | |
98 | 78 | | |
99 | 79 | | |
100 | 80 | | |
| |||
112 | 92 | | |
113 | 93 | | |
114 | 94 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | 95 | | |
125 | 96 | | |
126 | 97 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
| 98 | + | |
135 | 99 | | |
136 | 100 | | |
137 | 101 | | |
| |||
165 | 129 | | |
166 | 130 | | |
167 | 131 | | |
168 | | - | |
169 | 132 | | |
170 | 133 | | |
171 | 134 | | |
| |||
224 | 187 | | |
225 | 188 | | |
226 | 189 | | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
| 190 | + | |
232 | 191 | | |
233 | 192 | | |
234 | 193 | | |
235 | 194 | | |
236 | 195 | | |
237 | 196 | | |
238 | 197 | | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
| 198 | + | |
243 | 199 | | |
244 | 200 | | |
245 | 201 | | |
246 | | - | |
247 | 202 | | |
248 | 203 | | |
249 | 204 | | |
250 | 205 | | |
251 | | - | |
252 | 206 | | |
253 | 207 | | |
254 | 208 | | |
| |||
286 | 240 | | |
287 | 241 | | |
288 | 242 | | |
289 | | - | |
| 243 | + | |
290 | 244 | | |
291 | 245 | | |
292 | 246 | | |
293 | 247 | | |
294 | 248 | | |
295 | 249 | | |
296 | | - | |
| 250 | + | |
297 | 251 | | |
298 | 252 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
631 | | - | |
| 631 | + | |
632 | 632 | | |
633 | 633 | | |
634 | 634 | | |
| |||
664 | 664 | | |
665 | 665 | | |
666 | 666 | | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
671 | 670 | | |
672 | | - | |
673 | 671 | | |
674 | 672 | | |
675 | 673 | | |
| |||
709 | 707 | | |
710 | 708 | | |
711 | 709 | | |
712 | | - | |
| 710 | + | |
713 | 711 | | |
714 | 712 | | |
715 | 713 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
513 | 513 | | |
514 | 514 | | |
515 | 515 | | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
530 | 520 | | |
531 | 521 | | |
532 | 522 | | |
| |||
Lines changed: 0 additions & 89 deletions
This file was deleted.
0 commit comments