Skip to content

Add stats-q-error to stage level metrics#560

Open
gabotechs wants to merge 1 commit into
mainfrom
gabrielmusat/stats-q-error
Open

Add stats-q-error to stage level metrics#560
gabotechs wants to merge 1 commit into
mainfrom
gabrielmusat/stats-q-error

Conversation

@gabotechs

@gabotechs gabotechs commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Adds a stats_q_error metric at the stage level that computes an error rate between the estimated stats VS what actually happened, taken from https://www.vldb.org/pvldb/vol2/vldb09-657.pdf.

I find the current approach to be a bit messy...

It requires a lot of code for wiring this up. There's something special about this metric: is a metric attached to the Stage rather than a specific node, and it's collected after runtime finished.

Until now, all the metrics we stamp at the Stage level are known during planning (either static or dynamic). However, this time, we need to wait for the full execution to finish.

I'm very much open to other alternatives, as what I have here, is just too much code for just showing a metric.

@jayshrivastava any ideas on how to make this cleaner?

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.

1 participant