pub fn union(
left_plan: LogicalPlan,
right_plan: LogicalPlan,
) -> Result<LogicalPlan>
Expand description
Union two LogicalPlan
s.
Constructs the UNION plan, but does not perform type-coercion. Therefore the subtree expressions will not be properly typed until the optimizer pass.
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
.