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

Method as_explain_single_plan

src/expr/src/explain.rs:197–213  ·  view source on GitHub ↗
(
        &'a mut self,
        context: &'a ExplainContext<'a>,
    )

Source from the content-addressed store, hash-verified

195
196impl<'a> MirRelationExpr {
197 fn as_explain_single_plan(
198 &'a mut self,
199 context: &'a ExplainContext<'a>,
200 ) -> Result<ExplainSinglePlan<'a, MirRelationExpr>, ExplainError> {
201 // normalize the representation as linear chains
202 // (this implies !context.config.raw_plans by construction)
203 if context.config.linear_chains {
204 enforce_linear_chains(self)?;
205 };
206
207 let plan = AnnotatedPlan {
208 plan: self,
209 annotations: BTreeMap::default(),
210 };
211
212 Ok(ExplainSinglePlan { context, plan })
213 }
214}
215
216/// Normalize the way inputs of multi-input variants are rendered.

Callers 2

explain_textMethod · 0.45
explain_jsonMethod · 0.45

Calls 1

enforce_linear_chainsFunction · 0.85

Tested by

no test coverage detected