seddonm1 commented on a change in pull request #810:
URL: https://github.com/apache/arrow-datafusion/pull/810#discussion_r681452969



##########
File path: datafusion/src/logical_plan/dfschema.rs
##########
@@ -160,7 +160,12 @@ impl DFSchema {
                 // field to lookup is qualified.
                 // current field is qualified and not shared between 
relations, compare both
                 // qualifer and name.
-                (Some(q), Some(field_q)) => q == field_q && field.name() == 
name,
+                (Some(q), Some(field_q)) => {
+                    field.name() == name
+                        && (q == field_q
+                            || (field_q.contains('.')
+                                && field_q.ends_with(&format!(".{}", q))))

Review comment:
       yes. good catch




-- 
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]


Reply via email to