-
Notifications
You must be signed in to change notification settings - Fork 486
Frontend peek sequencing -- emit_optimizer_notices also for COPY TO S3
#34290
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,6 +13,7 @@ use std::collections::{BTreeMap, BTreeSet}; | |
| use std::fmt; | ||
|
|
||
| use mz_expr::{CollectionPlan, MirRelationExpr, MirScalarExpr, OptimizedMirRelationExpr}; | ||
| use mz_ore::collections::CollectionExt; | ||
| use mz_ore::soft_assert_or_log; | ||
| use mz_repr::refresh_schedule::RefreshSchedule; | ||
| use mz_repr::{GlobalId, SqlRelationType}; | ||
|
|
@@ -396,6 +397,17 @@ impl<P, S, T> DataflowDescription<P, S, T> { | |
| assert!(builds.next().is_none()); | ||
| build | ||
| } | ||
|
|
||
| /// Returns the id of the dataflow's sink export. | ||
| /// | ||
| /// # Panics | ||
| /// | ||
| /// Panics if the dataflow has no sink exports or has more than one. | ||
| pub fn sink_id(&self) -> GlobalId { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe this also wants to panic when there are more than one sink? but I'm not familiar enough with this code
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think so, yes. I've now made it enforce that we have exactly one sink. |
||
| let sink_exports = &self.sink_exports; | ||
| let sink_id = sink_exports.keys().into_element(); | ||
| *sink_id | ||
| } | ||
| } | ||
|
|
||
| impl<P, S, T> DataflowDescription<P, S, T> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might have to be
_df_meta?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is used in the next commit: passed in to
emit_optimizer_notices.