Materialize introduced a simpler internal type system called 'representation types' for its SQL optimizer. Instead of tracking fine-grained Postgres/SQL type distinctions (e.g., VARCHAR vs TEXT vs CHAR), the optimizer now uses coarser representation types that reflect actual runtime differences. This eliminates no-op casts like
Table of contents
A string by any other nameCasts: correct bookkeeping comes at a costRepresentation types: distinctions mean differencesLess busywork, more sharingSort: