alamb commented on code in PR #19930:
URL: https://github.com/apache/datafusion/pull/19930#discussion_r2779263373
##########
datafusion/sql/src/expr/identifier.rs:
##########
@@ -76,15 +76,16 @@ impl<S: ContextProvider> SqlToRel<'_, S> {
}
// Check the outer query schema
- if let Some(outer) = planner_context.outer_query_schema()
- && let Ok((qualifier, field)) =
+ for outer in planner_context.outer_queries_schemas() {
Review Comment:
Upon a second look at this code, I think this is resolving the names in the
wrong order (starts at outermost query, but really should start at the
innermost) -- something like `outer in
planner_context.outer_queries_schemas().iter().rev()`
I'll try and come up with a reproducer for this one
--
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]