Skip to main content

Module optimizer

Module optimizer 

Source
Expand description

Query normalization and optimizer support. Query normalization and optimization support.

This module defines canonical representations for rewrite-safe subsets of QAIL SELECT and mutation (ADD/SET/DEL) queries.

Structs§

FilterClause
Canonical WHERE clause block.
MutationClause
Canonical condition clause used by mutation normalization.
NestedBatchPlan
Planned batched fetch for nested relation expansion.
NormalizedJoin
Canonical JOIN item.
NormalizedMutation
Canonical representation for the rewrite-safe subset of mutation queries.
NormalizedSelect
Canonical representation for the rewrite-safe subset of SELECT.
OrderByItem
Canonical ORDER BY item.

Enums§

BatchPlanError
Errors from nested batch planning.
NestedRelationKind
Direction and shape of nested relation expansion.
NormalizeError
Errors returned when a query cannot be normalized into the supported subset.
NormalizeMutationError
Errors returned when a query cannot be normalized into the supported mutation subset.

Functions§

cleanup_mutation
Apply deterministic cleanup for supported mutation rewrites.
cleanup_select
Apply a deterministic, semantics-preserving cleanup pass.
normalize_mutation
Normalize a QAIL mutation (ADD, SET, DEL) into a canonical representation.
normalize_select
Normalize a QAIL SELECT into a canonical representation.
plan_nested_batch_fetch
Plan a batched nested-relation fetch using relation metadata and parent keys.