Commit f6e8d68
simplify: trim verbose comments, restore #8296 link, tidy loop
- Cut WHAT-comments and PR-message-style prose from the diff; keep only
non-obvious WHY (the #8296 link is back on the merging-beneficial guard,
one-line note on why we hand the unified projection back to
`remove_unnecessary_projections` for leaf absorption).
- Drop the orphaned `/// Unifies projection with its input ...` doc line
left over from the removed `try_unifying_projections`.
- Hoist `column_ref_map` out of the per-iteration allocation and `.clear()`
it each step.
- Replace the `can_unify` flag with a labeled `break 'outer` and destructure
`Transformed { data, transformed, .. }` in the optimizer-side loop.
No behaviour change. All projection unit + integration tests still pass
(24 + 54 + 23).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent eb4ac80 commit f6e8d68
3 files changed
Lines changed: 33 additions & 71 deletions
File tree
- datafusion
- core/benches
- optimizer/src/optimize_projections
- physical-plan/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
334 | 330 | | |
335 | 331 | | |
336 | 332 | | |
| |||
516 | 512 | | |
517 | 513 | | |
518 | 514 | | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | 515 | | |
523 | 516 | | |
524 | 517 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
| 539 | + | |
| 540 | + | |
545 | 541 | | |
546 | 542 | | |
547 | 543 | | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
556 | 550 | | |
557 | 551 | | |
558 | 552 | | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
559 | 558 | | |
560 | 559 | | |
561 | 560 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | 385 | | |
392 | 386 | | |
393 | 387 | | |
| |||
1017 | 1011 | | |
1018 | 1012 | | |
1019 | 1013 | | |
1020 | | - | |
1021 | | - | |
1022 | | - | |
1023 | | - | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
1027 | | - | |
1028 | | - | |
1029 | | - | |
1030 | | - | |
1031 | | - | |
| 1014 | + | |
| 1015 | + | |
1032 | 1016 | | |
1033 | 1017 | | |
1034 | 1018 | | |
1035 | 1019 | | |
1036 | 1020 | | |
| 1021 | + | |
1037 | 1022 | | |
1038 | 1023 | | |
1039 | | - | |
1040 | | - | |
| 1024 | + | |
1041 | 1025 | | |
1042 | 1026 | | |
1043 | 1027 | | |
1044 | 1028 | | |
1045 | 1029 | | |
1046 | | - | |
1047 | | - | |
1048 | | - | |
1049 | | - | |
1050 | | - | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
1051 | 1033 | | |
1052 | 1034 | | |
1053 | 1035 | | |
| |||
1068 | 1050 | | |
1069 | 1051 | | |
1070 | 1052 | | |
1071 | | - | |
1072 | | - | |
1073 | | - | |
1074 | | - | |
| 1053 | + | |
1075 | 1054 | | |
1076 | | - | |
1077 | | - | |
1078 | | - | |
1079 | | - | |
1080 | | - | |
1081 | | - | |
1082 | | - | |
1083 | | - | |
1084 | | - | |
1085 | | - | |
1086 | | - | |
1087 | | - | |
1088 | | - | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
1089 | 1062 | | |
1090 | 1063 | | |
1091 | 1064 | | |
| |||
1097 | 1070 | | |
1098 | 1071 | | |
1099 | 1072 | | |
1100 | | - | |
1101 | | - | |
1102 | | - | |
1103 | | - | |
1104 | | - | |
| 1073 | + | |
| 1074 | + | |
1105 | 1075 | | |
1106 | 1076 | | |
1107 | 1077 | | |
| |||
0 commit comments