phillipleblanc commented on code in PR #10707: URL: https://github.com/apache/datafusion/pull/10707#discussion_r1650021623
########## datafusion/expr/src/logical_plan/builder.rs: ########## @@ -1373,33 +1373,32 @@ pub fn union(left_plan: LogicalPlan, right_plan: LogicalPlan) -> Result<LogicalP } // create union schema - let union_qualified_fields = + let union_fields = zip(left_plan.schema().iter(), right_plan.schema().iter()) .map( - |((left_qualifier, left_field), (_right_qualifier, right_field))| { + |((_, left_field), (_, right_field))| { Review Comment: Asked on Discord why we need to enforce the `DuplicateUnqualifiedField` check - Postgres itself does not error if two columns have the same name. -- 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-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org