Skip to content

sql: LIR schema registry to support stable LIR#37814

Draft
mgree wants to merge 1 commit into
MaterializeInc:mainfrom
mgree:stable-lir-schema-registry
Draft

sql: LIR schema registry to support stable LIR#37814
mgree wants to merge 1 commit into
MaterializeInc:mainfrom
mgree:stable-lir-schema-registry

Conversation

@mgree

@mgree mgree commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Motivation

Closes https://linear.app/materializeinc/issue/SQL-288/lir-schema-registry.

Description

The LIR schema registry is a way of tracking LIR changes, so that LIR can be used as a stable format for, e.g., plan pinning.

This PR introduces the registry (stored in src/compute-types/tests/snapshots/) and infrastructure for generating a registry and comparing types.

As of 2026-07-22, this isn't quite ready to merge---some *Funcs still have MirScalarExprs in them. I'll put up a separate PR to fix that, then rebase this work on top.

Verification

New tests should pass, old tests should be unaffected. Some sanity check tests have been applied---the right things should show up in the registry, and the wrong things should not.

@mgree
mgree force-pushed the stable-lir-schema-registry branch from 23d1c07 to 62a74eb Compare July 22, 2026 20:17
@mgree
mgree force-pushed the stable-lir-schema-registry branch from 62a74eb to d00a921 Compare July 22, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant