MCPcopy Create free account
hub / github.com/apache/datafusion / pipe_operator_set

Method pipe_operator_set

datafusion/sql/src/query.rs:225–244  ·  view source on GitHub ↗

Handle Union/Intersect/Except pipe operators

(
        &self,
        mut plan: LogicalPlan,
        set_operator: SetOperator,
        set_quantifier: SetQuantifier,
        queries: Vec<Query>,
        planner_context: &mut PlannerContext,
   

Source from the content-addressed store, hash-verified

223
224 /// Handle Union/Intersect/Except pipe operators
225 fn pipe_operator_set(
226 &self,
227 mut plan: LogicalPlan,
228 set_operator: SetOperator,
229 set_quantifier: SetQuantifier,
230 queries: Vec<Query>,
231 planner_context: &mut PlannerContext,
232 ) -> Result<LogicalPlan> {
233 for query in queries {
234 let right_plan = self.query_to_plan(query, planner_context)?;
235 plan = self.set_operation_to_plan(
236 set_operator,
237 plan,
238 right_plan,
239 set_quantifier,
240 )?;
241 }
242
243 Ok(plan)
244 }
245
246 /// Wrap a plan in a limit
247 fn limit(

Callers 1

pipe_operatorMethod · 0.80

Calls 2

query_to_planMethod · 0.80
set_operation_to_planMethod · 0.80

Tested by

no test coverage detected