You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/11/01 01:32:07 UTC
[GitHub] [arrow-datafusion] andygrove commented on a diff in pull request #4050: single_distinct_to_groupby no longer drops qualifiers
andygrove commented on code in PR #4050:
URL: https://github.com/apache/arrow-datafusion/pull/4050#discussion_r1009997236
##########
datafusion/common/src/dfschema.rs:
##########
@@ -203,7 +203,12 @@ impl DFSchema {
// qualifier and name.
(Some(q), Some(field_q)) => q == field_q && field.name() == name,
// field to lookup is qualified but current field is unqualified.
- (Some(_), None) => false,
+ (Some(qq), None) => {
+ // the original field may now be aliased with a name that matches the
+ // original qualified name
+ let qualified_name = format!("{}.{}", qq, name);
+ field.name() == &qualified_name
Review Comment:
This isn't sufficient ... still working on this
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org