Skip to content

Conversation

petrosagg
Copy link
Contributor

Makes it so mz_source_statistics_raw only records information for actual source exports. Then, mz_source_statistics includes everything in the raw table and an aggregated view over the entire source. The aggregation is defined as a simple SQL query instead of each source managing it in its Rust implementation.

Motivation

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.

@petrosagg petrosagg force-pushed the export-only-statistics branch from 56d5d8f to 45cc40e Compare September 22, 2025 10:08
@petrosagg petrosagg marked this pull request as ready for review September 22, 2025 10:15
@petrosagg petrosagg requested review from a team as code owners September 22, 2025 10:15
@petrosagg petrosagg requested review from ggevay and martykulma and removed request for ggevay September 22, 2025 10:15
Copy link
Contributor

@martykulma martykulma left a comment

Choose a reason for hiding this comment

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

awesome!

Makes it so `mz_source_statistics_raw` only records information for
actual source exports. Then, `mz_source_statistics` includes everything
in the raw table and an aggregated view over the entire source. The
aggregation is defined as a simple SQL query instead of each source
managing it in its Rust implementation.

Signed-off-by: Petros Angelatos <[email protected]>
@petrosagg petrosagg force-pushed the export-only-statistics branch from a9b2cb6 to ca79be2 Compare September 22, 2025 13:18
@petrosagg petrosagg merged commit b2335a7 into MaterializeInc:main Sep 22, 2025
125 checks passed
@petrosagg petrosagg deleted the export-only-statistics branch September 22, 2025 14:36
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