pub fn union(
left_plan: LogicalPlan,
right_plan: LogicalPlan,
) -> Result<LogicalPlan>Expand description
Union two LogicalPlans.
Infers common output types, but does not insert casts into the inputs. The analyzer must still resolve input expressions and insert any required casts.
If a properly typed UNION plan is needed, refer to TypeCoercionRewriter::coerce_union
or alternatively, merge the union input schema using coerce_union_schema and
apply the expression rewrite with coerce_plan_expr_for_schema.