Module mz_transform::canonicalization
source ยท Expand description
Transformations that bring relation expressions to their canonical form.
This is achieved by:
- Bringing enclosed scalar expressions to a canonical form,
- Converting / peeling off part of the enclosing relation expression into another relation expression that can represent the same concept.
Modulesยง
- flatmap_
to_ ๐map TurnsFlatMap
intoMap
if only one row is produced by flatmap. - Transform column references in a
Map
into aProject
. - topk_
elision ๐Remove TopK operators with both an offset of zero and no limit.
Structsยง
- Turns
FlatMap
intoMap
if only one row is produced by flatmap. - Transform column references in a
Map
into aProject
, or repeated aggregations in aReduce
into aProject
. - A transform that visits each AST node and reduces scalar expressions.
- Remove TopK operators with both an offset of zero and no limit.