-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ct: establish CREATE CONTINUAL TASK plumbing
- Loading branch information
Showing
22 changed files
with
205 additions
and
28 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
29 changes: 29 additions & 0 deletions
29
src/adapter/src/coord/sequencer/inner/create_continual_task.rs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright Materialize, Inc. and contributors. All rights reserved. | ||
// | ||
// Use of this software is governed by the Business Source License | ||
// included in the LICENSE file. | ||
// | ||
// As of the Change Date specified in that file, in accordance with | ||
// the Business Source License, use of this software will be governed | ||
// by the Apache License, Version 2.0. | ||
|
||
use mz_ore::instrument; | ||
use mz_sql::names::ResolvedIds; | ||
use mz_sql::plan; | ||
|
||
use crate::command::ExecuteResponse; | ||
use crate::coord::Coordinator; | ||
use crate::error::AdapterError; | ||
use crate::session::Session; | ||
|
||
impl Coordinator { | ||
#[instrument] | ||
pub(crate) async fn sequence_create_continual_task( | ||
&mut self, | ||
session: &Session, | ||
plan: plan::CreateContinualTaskPlan, | ||
resolved_ids: ResolvedIds, | ||
) -> Result<ExecuteResponse, AdapterError> { | ||
todo!("WIP {:?}", (session, plan, resolved_ids)); | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// Copyright Materialize, Inc. and contributors. All rights reserved. | ||
// | ||
// Use of this software is governed by the Business Source License | ||
// included in the LICENSE file. | ||
// | ||
// As of the Change Date specified in that file, in accordance with | ||
// the Business Source License, use of this software will be governed | ||
// by the Apache License, Version 2.0. | ||
|
||
use std::any::Any; | ||
use std::rc::Rc; | ||
|
||
use differential_dataflow::Collection; | ||
use mz_compute_types::sinks::{ComputeSinkDesc, ContinualTaskConnection}; | ||
use mz_repr::{Diff, GlobalId, Row, Timestamp}; | ||
use mz_storage_types::controller::CollectionMetadata; | ||
use mz_storage_types::errors::DataflowError; | ||
use timely::dataflow::Scope; | ||
use timely::progress::Antichain; | ||
|
||
use crate::compute_state::ComputeState; | ||
use crate::render::sinks::SinkRender; | ||
use crate::render::StartSignal; | ||
|
||
impl<G> SinkRender<G> for ContinualTaskConnection<CollectionMetadata> | ||
where | ||
G: Scope<Timestamp = Timestamp>, | ||
{ | ||
fn render_sink( | ||
&self, | ||
compute_state: &mut ComputeState, | ||
sink: &ComputeSinkDesc<CollectionMetadata>, | ||
sink_id: GlobalId, | ||
as_of: Antichain<Timestamp>, | ||
start_signal: StartSignal, | ||
oks: Collection<G, Row, Diff>, | ||
errs: Collection<G, DataflowError, Diff>, | ||
) -> Option<Rc<dyn Any>> { | ||
todo!( | ||
"WIP {:?}", | ||
( | ||
std::any::type_name_of_val(&compute_state), | ||
sink, | ||
sink_id, | ||
as_of, | ||
std::any::type_name_of_val(&start_signal), | ||
std::any::type_name_of_val(&oks), | ||
std::any::type_name_of_val(&errs), | ||
) | ||
); | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.