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.
Structsยง
- Flat
MapElimination - Attempts to eliminate FlatMaps that are sure to have 0 or 1 results on each input row.
- Projection
Extraction - Transform column references in a
Mapinto aProject, or repeated aggregations in aReduceinto aProject. - Reduce
Scalars - A transform that visits each AST node and reduces scalar expressions.
- TopK
Elision - Remove TopK operators with both an offset of zero and no limit.