alamb commented on issue #21231:
URL: https://github.com/apache/datafusion/issues/21231#issuecomment-4372693252
I think a classic way to implement this type of resolution is using a stack
of named scope / bindings.
So that would be something like
```
(Query Bindings (column references)
-> Local Scope Bindings (any newly defined references)
...
-> nested Scope Bindings for a nested lambda, for exampe (any newly
defined references)
```
So then when we went to resolve a mapping `"a"` to a column index it would
look back in the stack of scope bindings.
When the recursion passes a lambda function, it would push a new scope on ot
the stack and pop off the stack when done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]