Module invariants

Module invariants 

Source

Enumsยง

InvariantLevel

Functionsยง

assert_always_invariants_at_current_node
Apply the InvariantLevel::Always check at the current plan node only.
assert_executable_invariants
Visit the plan nodes, and confirm the InvariantLevel::Executable as well as the less stringent InvariantLevel::Always checks.
assert_expected_schema
Returns an error if the plan does not have the expected schema. Ignores metadata and nullability.
assert_subqueries_are_valid ๐Ÿ”’
Asserts that the subqueries are structured properly with valid node placement.
assert_unique_field_names ๐Ÿ”’
Returns an error if plan, and subplans, do not have unique fields.
assert_valid_extension_nodes ๐Ÿ”’
Asserts that the query plan, and subplan, extension nodes have valid invariants.
assert_valid_semantic_plan ๐Ÿ”’
Returns an error if the plan is not semantically valid.
check_aggregation_in_scalar_subquery ๐Ÿ”’
check_correlations_in_subquery ๐Ÿ”’
check_inner_plan ๐Ÿ”’
check_mixed_out_refer_in_window ๐Ÿ”’
Check whether the window expressions contain a mixture of out reference columns and inner columns
check_no_outer_references ๐Ÿ”’
check_subquery_expr
Do necessary check on subquery expressions and fail the invalid plan
get_correlated_expressions ๐Ÿ”’
strip_inner_query ๐Ÿ”’