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

ct: triage all currently remaining TODO(ct)s in adapter #29917

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

danhhz
Copy link
Contributor

@danhhz danhhz commented Oct 9, 2024

The numbers correspond to which milestone that they need to be fixed by.

Touches MaterializeInc/database-issues#8427

Motivation

  • This PR refactors existing code.

Tips for reviewer

The priority here is finding if there are any M1 items left, would love a second set of eyes on this in particular. Some of the M2 vs M3 decisions feel like they could go either way, definitely open to feedback.

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.

The numbers correspond to which [milestone] that they need to be fixed
by.

[milestone]: https://github.com/MaterializeInc/database-issues/issues/8427
@@ -42,7 +42,6 @@ use crate::optimize::{self, Optimize, OptimizerCatalog};
use crate::session::Session;
use crate::util::ResultExt;

// TODO(ct): Big oof. Dedup a bunch of this with MVs.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

After factoring bits of it out to share internally, feels like there is less to do here.

@@ -1414,7 +1414,6 @@ pub struct CreateContinualTaskStatement<T: AstInfo> {
pub enum ContinualTaskStmt<T: AstInfo> {
Delete(DeleteStatement<T>),
Insert(InsertStatement<T>),
// TODO(ct): Update/upsert?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Doesn't feel actionable IMO. I mostly left this in here in first place without thinking because when I type an enum with Delete and Insert variants, I naturally consider Update/Upsert. Notably, none of the initial use cases in my doc seemed to need them

@@ -735,10 +735,8 @@ pub struct CreateContinualTaskPlan {
// `continual_task.expr`. None on restart.
pub placeholder_id: Option<mz_expr::LocalId>,
pub desc: RelationDesc,
// TODO(ct): Multiple inputs.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Duplicate of the one in parser.rs

pub input_id: GlobalId,
pub continual_task: MaterializedView,
// TODO(ct): replace, drop_ids, if_not_exists
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Duplicate of the one in parser.rs

@danhhz danhhz requested a review from ParkMyCar October 9, 2024 15:27
@danhhz danhhz marked this pull request as ready for review October 9, 2024 15:27
@danhhz danhhz requested a review from a team as a code owner October 9, 2024 15:27
@danhhz
Copy link
Contributor Author

danhhz commented Oct 10, 2024

TFTR!

@danhhz danhhz merged commit ab37442 into MaterializeInc:main Oct 10, 2024
82 checks passed
@danhhz danhhz deleted the ct_todos_adapter branch October 10, 2024 14:34
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.

2 participants