Module mz_transform::attribute
source · Expand description
Derived attributes framework and definitions.
Modules
Definition and helper structs for the
NonNegative
attribute.Definition and helper structs for the
RelationType
attribute.Definition and helper structs for the
SubtreeSize
attribute.Definition and helper structs for the
UniqueKeys
attribute.Structs
Compute the column types of each subtree of a MirRelationExpr from the
bottom-up.
AsKey 🔒
Converts an Attribute into a Key that can be looked up in DerivedAttributes
Derives an attribute and any attribute it depends on.
A map that keeps the computed
A
values for all LocalId
bindings in the current environment.Traverses a
MirRelationExpr
tree and figures out whether for subtree
the sum of all diffs up to a specific time for any record can be a
negative value.Compute the column types of each subtree of a MirRelationExpr from the
bottom-up.
Builds an DerivedAttributes
Compute the number of MirRelationExpr in each subtree in a bottom-up manner.
Compute the unique keys of each subtree of a MirRelationExpr from the
bottom-up.
Enums
A topological sort of extant attributes.
EnvTask 🔒
Models an environment maintenence task that needs to be executed
after visiting a
MirRelationExpr
.Constants
Should always be equal to the number of attributes
Traits
A common interface to be implemented by all derived attributes.
Functions
Produce an
AnnotatedPlan
wrapping the given MirRelationExpr
along
with Attributes
derived from the given context configuration.