Skip to main content

Crate mz_catalog_decode

Crate mz_catalog_decode 

Source
Expand description

Decoders for durable catalog data.

The builtin catalog views derive their columns from mz_catalog_raw, which exposes catalog objects in their durable encoding. The decoding logic lives here, and mz-expr exposes each decoder as an mz_internal.parse_* scalar function. It sits below mz-expr in the dependency graph, so it cannot use the crates that own the decoded formats (mz-catalog-protos, mz-sql, mz-storage-types, mz-audit-log) and mirrors their shapes instead. Tests in those crates and the catalog sqllogictests catch drift.

Modulesยง

audit_log
Reshape proto audit_log_event_v1::Details JSON back into the shape mz_audit_log::EventDetails::as_json produces.
create_sql
Decoders for catalog create_sql strings.
durable
Decoders for values in their durable catalog JSON encoding, the serde shape of the mz-catalog-protos types.