Commit 2448057
fix: prioritize @each lambda params over column name conflicts
When a lambda parameter name matched an existing column name, the
substitution was silently skipped due to the `not isinstance(node.parent,
exp.Column)` guard wrapping both `args` and `evaluator.locals` lookups.
Lambda arguments now take priority regardless of Column context, while
`evaluator.locals` substitution remains restricted to non-Column nodes.
Fixes #5582
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 0f192c9 commit 2448057
2 files changed
Lines changed: 17 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
647 | 647 | | |
648 | 648 | | |
649 | 649 | | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
650 | 653 | | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | 654 | | |
655 | 655 | | |
656 | 656 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
621 | 635 | | |
622 | 636 | | |
623 | 637 | | |
| |||
0 commit comments