Module expr::relation::canonicalize[][src]

Expand description

Utility functions to transform parts of a single MirRelationExpr into canonical form.

Functions

Canonicalize only the equivalence classes of a join.

Canonicalize equivalence classes of a join and expressions contained in them.

Canonicalize predicates of a filter.

Comparison method for sorting predicates by their complexity, measured by the total number of non-literal expression nodes within the expression.

Returns the inner operand if the given predicate is an IS NOT NULL expression.

Whether the given predicate evaluates to NULL when the given operand expression is NULL.

Gives a relative complexity ranking for an expression. Higher numbers mean greater complexity.

Replace any matching subexpressions in predicate, and if predicate has changed, reduce it. Return whether predicate has changed.