Skip to main content

Module typecheck

Module typecheck 

Source
Expand description

Runtime typechecking integrated with the project compiler.

Validation runs against an mz-deploy in-memory catalog using mz-sql directly (see catalog). See run for the algorithm.

ModulesΒ§

bootstrap πŸ”’
Builds the shared base catalog forked by per-task typechecks.
catalog πŸ”’
Catalog-backed runtime typechecking.
convert πŸ”’
Conversions between project AST/types and the in-memory catalog’s SQL form.
error πŸ”’
Error types surfaced by the typechecker.
executor πŸ”’
Ready-queue DAG executor for parallel typechecking.

StructsΒ§

NodeValue πŸ”’
schema_stable is true when columns matches the cached result; dependents only re-typecheck when at least one dep is not schema-stable.
StatsCounter πŸ”’
Lock-free per-node decision counters aggregated across the parallel executor.
TypecheckStats πŸ”’
Counts of incremental typecheck behavior during a single run call.

FunctionsΒ§

compute_external_digests πŸ”’
Per-external-table digests keyed by ObjectId.to_string().
digest_columns πŸ”’
SHA-256 digest of a column map, deterministic across runs because the underlying BTreeMap iterates in sorted key order.
run πŸ”’
Full-typecheck entrypoint with incremental reuse.
typecheck_node πŸ”’