MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / convert_union

Function convert_union

nodedb/src/control/planner/sql_plan_convert/set_ops.rs:65–81  ·  view source on GitHub ↗
(
    inputs: &[SqlPlan],
    distinct: bool,
    tenant_id: TenantId,
    ctx: &ConvertContext,
)

Source from the content-addressed store, hash-verified

63}
64
65pub(super) fn convert_union(
66 inputs: &[SqlPlan],
67 distinct: bool,
68 tenant_id: TenantId,
69 ctx: &ConvertContext,
70) -> crate::Result<Vec<PhysicalTask>> {
71 let mut all_tasks = Vec::new();
72 for input in inputs {
73 all_tasks.extend(convert_one(input, tenant_id, ctx)?);
74 }
75 if distinct {
76 for task in &mut all_tasks {
77 task.post_set_op = PostSetOp::UnionDistinct;
78 }
79 }
80 Ok(all_tasks)
81}
82
83pub(super) fn convert_intersect(
84 left: &SqlPlan,

Callers

nothing calls this directly

Calls 2

convert_oneFunction · 0.85
extendMethod · 0.45

Tested by

no test coverage detected