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.

Modulesยง

  • flatmap_to_map ๐Ÿ”’
    Turns FlatMap into Map if only one row is produced by flatmap.
  • Transform column references in a Map into a Project.
  • topk_elision ๐Ÿ”’
    Remove TopK operators with both an offset of zero and no limit.

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.
  • A transform that visits each AST node and reduces scalar expressions.
  • Remove TopK operators with both an offset of zero and no limit.