-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Scopes to resolve lambda argument references in ExpressionAnalyzer #9026
Conversation
Duplicate of #7790? I am not sure it is possible to use |
@martint , did you have time to look into this? |
@sopel39 , did you have anything specific in mind? |
Resolution works differently than in |
Can we have an example of a query that will work incorrectly after this change and used to work correctly or at least fail before? |
I am not sure (I haven't deeply though about it), but this doesn't mean that there won't be any new regressions. It seems that it would be easier to make both Then after #7398 we could switch completely to scopes for lambda resolution. |
@sopel39 but the problem is in master they both do wrong (differently). After this PR, I did a quick look into doing #7398, but the code seems both complex and 'there is room for improvement'-ish. |
Yeah, but then you probably should use |
Or maybe couple of |
This is probably not true after all. I think in |
I haven't reviewed it yet (I don't know if I will have time). However, the approach to use |
Superseded by #9099 |
Use
Scope
to resolve lambda arguments inExpressionAnalyzer
.Fixes #9023, #7784
For #7790 following things are still needed:
AggregationAnalyzer
needs similar updateQueryPlanner
?)