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

Function convert_except

nodedb/src/control/planner/sql_plan_convert/set_ops.rs:107–129  ·  view source on GitHub ↗
(
    left: &SqlPlan,
    right: &SqlPlan,
    all: bool,
    tenant_id: TenantId,
    ctx: &ConvertContext,
)

Source from the content-addressed store, hash-verified

105}
106
107pub(super) fn convert_except(
108 left: &SqlPlan,
109 right: &SqlPlan,
110 all: bool,
111 tenant_id: TenantId,
112 ctx: &ConvertContext,
113) -> crate::Result<Vec<PhysicalTask>> {
114 let mut left_tasks = convert_one(left, tenant_id, ctx)?;
115 let mut right_tasks = convert_one(right, tenant_id, ctx)?;
116 let op = if all {
117 PostSetOp::ExceptAll
118 } else {
119 PostSetOp::Except
120 };
121 for task in &mut left_tasks {
122 task.post_set_op = op;
123 }
124 for task in &mut right_tasks {
125 task.post_set_op = op;
126 }
127 left_tasks.extend(right_tasks);
128 Ok(left_tasks)
129}
130
131pub(super) fn convert_insert_select(
132 target: &str,

Callers

nothing calls this directly

Calls 2

convert_oneFunction · 0.85
extendMethod · 0.45

Tested by

no test coverage detected