(
&'a mut self,
context: &'a ExplainContext<'a>,
)
| 195 | |
| 196 | impl<'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. |
no test coverage detected