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

Method debug_explain

src/expr/src/relation.rs:1499–1511  ·  view source on GitHub ↗

Pretty-print this [MirRelationExpr] to a string using a custom [ExplainConfig] and an optionally provided [ExprHumanizer]. This is intended for debugging and tests, not users.

(
        &self,
        config: &ExplainConfig,
        humanizer: Option<&dyn ExprHumanizer>,
    )

Source from the content-addressed store, hash-verified

1497 /// [ExplainConfig] and an optionally provided [ExprHumanizer].
1498 /// This is intended for debugging and tests, not users.
1499 pub fn debug_explain(
1500 &self,
1501 config: &ExplainConfig,
1502 humanizer: Option<&dyn ExprHumanizer>,
1503 ) -> String {
1504 text_string_at(self, || PlanRenderingContext {
1505 indent: Indent::default(),
1506 humanizer: humanizer.unwrap_or(&DummyHumanizer),
1507 annotations: BTreeMap::default(),
1508 config,
1509 ambiguous_ids: BTreeSet::default(),
1510 })
1511 }
1512
1513 /// Take ownership of `self`, leaving an empty `MirRelationExpr::Constant` with the optionally
1514 /// given scalar types. The given scalar types should be `base_eq` with the types that `typ()`

Callers 3

handle_roundtripFunction · 0.45
prettyMethod · 0.45
apply_transformFunction · 0.45

Calls 1

text_string_atFunction · 0.85

Tested by 1

apply_transformFunction · 0.36