MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / plan_select

Function plan_select

src/sql/src/plan/statement/dml.rs:200–212  ·  view source on GitHub ↗
(
    scx: &StatementContext,
    select: SelectStatement<Aug>,
    params: &Params,
    copy_to: Option<CopyFormat>,
)

Source from the content-addressed store, hash-verified

198}
199
200pub fn plan_select(
201 scx: &StatementContext,
202 select: SelectStatement<Aug>,
203 params: &Params,
204 copy_to: Option<CopyFormat>,
205) -> Result<Plan, PlanError> {
206 if let Some(f) = side_effecting_func::plan_select_if_side_effecting(scx, &select, params)? {
207 return Ok(Plan::SideEffectingFunc(f));
208 }
209
210 let (plan, _desc) = plan_select_inner(scx, select, params, copy_to)?;
211 Ok(Plan::Select(plan))
212}
213
214fn plan_select_inner(
215 scx: &StatementContext,

Callers 3

planFunction · 0.85
planMethod · 0.85
plan_copyFunction · 0.85

Calls 4

SideEffectingFuncEnum · 0.85
plan_select_innerFunction · 0.85
SelectClass · 0.85

Tested by

no test coverage detected