sql: LIR schema registry to support stable LIR#37814
Draft
mgree wants to merge 1 commit into
Draft
Conversation
mgree
force-pushed
the
stable-lir-schema-registry
branch
from
July 22, 2026 20:17
23d1c07 to
62a74eb
Compare
…ld MSEs), but architecture is there.
mgree
force-pushed
the
stable-lir-schema-registry
branch
from
July 22, 2026 20:26
62a74eb to
d00a921
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 haveMirScalarExprs 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.