Module mz_adapter::explain

source ยท
Expand description

EXPLAIN support for various intermediate representations.

Ideally, the EXPLAIN support for each IR should be in the crate where this IR is defined. However, we need to resort to an Explainable newtype struct in order to provide alternate mz_repr::explain::Explain implementations for some structs (see the mir) module for details.

Modulesยง

  • fast_path ๐Ÿ”’
    EXPLAIN support for FastPathPlan.
  • hir ๐Ÿ”’
    EXPLAIN support for HIR structures.
  • insights ๐Ÿ”’
    Derive insights for plans.
  • lir ๐Ÿ”’
    EXPLAIN support for LIR structures.
  • mir ๐Ÿ”’
    EXPLAIN support for MIR structures.
  • optimizer_trace ๐Ÿ”’
    Tracing utilities for explainable plans.

Structsยง

Functionsยง

  • explain_dataflow ๐Ÿ”’
    Convenience method to derive an ExplainContext from the index_imports in the given plan and all other input parameters, wrap the plan in an Explainable, and finally compute and return the explain(...) result.
  • explain_plan ๐Ÿ”’
    Convenience method to explain a single plan.