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

compute: write unified introspection updates to storage #27767

Merged
merged 3 commits into from
Jul 2, 2024

Conversation

teskje
Copy link
Contributor

@teskje teskje commented Jun 20, 2024

This PR wraps up the unified compute introspection MVP by adding the missing code to write updates from introspection subscribes to storage, as well as a first unified relation, mz_compute_error_counts_raw_unified.

Motivation

  • This PR adds a known-desirable feature.

Closes #26730

Tips for reviewer

Commits can be reviewed independently.

Checklist

@teskje teskje force-pushed the unified-introspection-write branch from 97c18e2 to 4b1d5a4 Compare June 20, 2024 13:27
@teskje teskje force-pushed the unified-introspection-write branch 5 times, most recently from eb5fc67 to 9550045 Compare June 29, 2024 19:32
@teskje teskje marked this pull request as ready for review July 1, 2024 08:01
@teskje teskje requested review from a team and morsapaes as code owners July 1, 2024 08:01
@teskje teskje requested a review from maddyblue July 1, 2024 08:01
@jkosh44
Copy link
Contributor

jkosh44 commented Jul 1, 2024

LGTM from a SQL council point of view.

src/environmentd/tests/server.rs Outdated Show resolved Hide resolved
@nrainer-materialize
Copy link
Contributor

nrainer-materialize commented Jul 1, 2024

I triggered a nightly build: https://buildkite.com/materialize/nightly/builds/8308

Aborted, I noticed you already had one running. 👍

@teskje teskje force-pushed the unified-introspection-write branch 2 times, most recently from 522281d to d7febfb Compare July 2, 2024 08:10
@teskje
Copy link
Contributor Author

teskje commented Jul 2, 2024

TFTRs!

@teskje teskje enabled auto-merge July 2, 2024 08:11
This commit adds the necessary storage controller calls to write updates
received from introspection subscribes to their respective target
storage collections, and retract them when an introspection subscribe is
dropped.
This commit adds the first unified compute introspection relation,
`mz_compute_error_counts_raw_unified`, the unified equivalent of
`mz_compute_error_counts_raw`.

Ideally we'd name the new relation `mz_compute_error_counts_raw` too,
but we cannot do so until we have removed the automatic translation of
the `mz_internal` schema to `mz_introspection`, as otherwise
bootstrapping encounters a naming conflict with the per-replica
introspection source.

Note that we cannot yet define the `mz_compute_error_count` view on top
of `mz_compute_error_counts_unified_raw` as that view also depends on
other introspection relations that haven't been unified yet.
@teskje teskje force-pushed the unified-introspection-write branch from d7febfb to 5d1afa8 Compare July 2, 2024 09:37
@teskje teskje merged commit fe41976 into MaterializeInc:main Jul 2, 2024
80 checks passed
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.

[Epic] Unified compute introspection
4 participants