mz_adapter/explain/
hir.rs1use mz_repr::explain::{Explain, ExplainError};
13use mz_sql::plan::HirRelationExpr;
14
15use crate::explain::Explainable;
16
17impl<'a> Explain<'a> for Explainable<'a, HirRelationExpr> {
18 type Context = <HirRelationExpr as Explain<'a>>::Context;
19
20 type Text = <HirRelationExpr as Explain<'a>>::Text;
21
22 type Json = <HirRelationExpr as Explain<'a>>::Json;
23
24 type Dot = <HirRelationExpr as Explain<'a>>::Dot;
25
26 fn explain_text(&'a mut self, context: &'a Self::Context) -> Result<Self::Text, ExplainError> {
27 self.0.explain_text(context)
28 }
29
30 fn explain_json(&'a mut self, context: &'a Self::Context) -> Result<Self::Json, ExplainError> {
31 self.0.explain_json(context)
32 }
33
34 fn explain_dot(&'a mut self, context: &'a Self::Context) -> Result<Self::Dot, ExplainError> {
35 self.0.explain_dot(context)
36 }
37}