Skip to content

sql: Add Eval and Columns traits for abstractly working with scalar expressions#36647

Open
mgree wants to merge 1 commit into
MaterializeInc:mainfrom
mgree:stable-lir-traits
Open

sql: Add Eval and Columns traits for abstractly working with scalar expressions#36647
mgree wants to merge 1 commit into
MaterializeInc:mainfrom
mgree:stable-lir-traits

Conversation

@mgree
Copy link
Copy Markdown
Contributor

@mgree mgree commented May 20, 2026

Remove these sections if your commit already has a good description!

Motivation

https://github.com/MaterializeInc/materialize/blob/main/doc/developer/design/20260311_optimizer_customer_tradeoff.md

First PR split off of #36544.

Description

As we develop an LIR-level scalar expression, we will need to be able to (a) call eval() on those scalars and (b) ask questions about columns.

This PR introduces two traits that capture those behaviors, and refactors existing MIR-level MSE functions to work with those abstractions.

Verification

Pure refactor, should be all green.

@mgree mgree requested review from a team as code owners May 20, 2026 20:58
@mgree mgree requested review from antiguru and ggevay May 20, 2026 21:07
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