Friede80 commented on code in PR #15135: URL: https://github.com/apache/datafusion/pull/15135#discussion_r1994061012
########## datafusion/optimizer/src/analyzer/type_coercion.rs: ########## @@ -930,7 +930,7 @@ fn coerce_case_expression(case: Case, schema: &DFSchema) -> Result<Case> { /// This method presumes that the wildcard expansion is unneeded, or has already /// been applied. pub fn coerce_union_schema(inputs: &[Arc<LogicalPlan>]) -> Result<DFSchema> { - let base_schema = inputs[0].schema(); + let base_schema = inputs[0].schema().as_ref().clone().strip_qualifiers(); Review Comment: Oh good catch, that is nicer. -- 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