Module mz_transform::canonicalization

source ·
Expand description

Transformations that bring relation expressions to their canonical form.

This is achieved by:

  1. Bringing enclosed scalar expressions to a canonical form,
  2. Converting / peeling off part of the enclosing relation expression into another relation expression that can represent the same concept.

Structs§

  • Turns FlatMap into Map if only one row is produced by flatmap.
  • Transform column references in a Map into a Project, or repeated aggregations in a Reduce into a Project.
  • Remove TopK operators with both an offset of zero and no limit.