Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adapter: extract an OptimizerCatalog trait #29598

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

danhhz
Copy link
Contributor

@danhhz danhhz commented Sep 17, 2024

This will help with continual tasks, which need to inject an entry for
the CT itself before it exists in the catalog, but also it gets us one
step closer to pulling the optimizer into its own crate.

I also switched over a few more adapter::optimize::*::Optimizer
structs, but had to leave a few because it gets tricky with
ExprPrepStyle::OneShot and eval_unmaterializable_func.

Touches MaterializeInc/database-issues#8427

Motivation

  • This PR refactors existing code.

Tips for reviewer

Checklist

  • This PR has adequate test coverage / QA involvement has been duly considered. (trigger-ci for additional test/nightly runs)
  • This PR has an associated up-to-date design doc, is a design doc (template), or is sufficiently small to not require a design.
  • If this PR evolves an existing $T ⇔ Proto$T mapping (possibly in a backwards-incompatible way), then it is tagged with a T-proto label.
  • If this PR will require changes to cloud orchestration or tests, there is a companion cloud PR to account for those changes that is tagged with the release-blocker label (example).
  • If this PR includes major user-facing behavior changes, I have pinged the relevant PM to schedule a changelog post.

This will help with continual tasks, which need to inject an entry for
the CT itself before it exists in the catalog, but also it gets us one
step closer to pulling the optimizer into its own crate.

I also switched over a few more `adapter::optimize::*::Optimizer`
structs, but had to leave a few because it gets tricky with
`ExprPrepStyle::OneShot` and `eval_unmaterializable_func`.

Touches #28899
@danhhz danhhz requested a review from teskje September 19, 2024 21:53
@danhhz danhhz marked this pull request as ready for review September 19, 2024 21:53
@danhhz danhhz requested review from a team as code owners September 19, 2024 21:53
@danhhz danhhz changed the title DNM adapter: extract an OptimizerCatalog trait adapter: extract an OptimizerCatalog trait Sep 19, 2024
@danhhz
Copy link
Contributor Author

danhhz commented Sep 19, 2024

This should be ready for review!

@ggevay ggevay self-requested a review September 20, 2024 08:46
Copy link
Contributor

@teskje teskje left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but leaving the approval to Gabor.

Copy link
Contributor

@ggevay ggevay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@ParkMyCar ParkMyCar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean 👌

@danhhz
Copy link
Contributor Author

danhhz commented Sep 24, 2024

TFTRs!

@danhhz danhhz merged commit 51415be into MaterializeInc:main Sep 24, 2024
86 checks passed
@danhhz danhhz deleted the optimizer_catalog branch September 24, 2024 20:10
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.

4 participants