Skip to content

docs: document TPC-H plan-stability golden files and regeneration#1979

Merged
andygrove merged 1 commit into
apache:mainfrom
andygrove:docs/tpch-plan-stability-goldens
Jul 9, 2026
Merged

docs: document TPC-H plan-stability golden files and regeneration#1979
andygrove merged 1 commit into
apache:mainfrom
andygrove:docs/tpch-plan-stability-goldens

Conversation

@andygrove

Copy link
Copy Markdown
Member

Which issue does this PR close?

Closes #.

Rationale for this change

The tpch_plan_stability suite in ballista-scheduler compares the distributed physical plans for the 22 TPC-H queries against approved golden files. When a change intentionally alters distributed planning, the suite fails with a plan-drift diff and the goldens must be regenerated. This workflow was not documented anywhere in the contributor guide, so a contributor hitting the failure has no pointer to dev/update-tpch-plan-stability.sh or an explanation of what the goldens represent.

What changes are included in this PR?

Add a "TPC-H plan-stability golden files" subsection to the contributor development guide (docs/source/contributors-guide/development.md). It explains what the golden plans capture (stage boundaries, shuffles, exchange reuse), that they are planned deterministically against a synthetic statistics-only table so no TPC-H data or running cluster is needed, where the approved files live, and how to regenerate and review them with dev/update-tpch-plan-stability.sh.

Docs-only change. npx prettier@2.7.1 reports no formatting changes.

Are there any user-facing changes?

No. Documentation only; no code, API, or behavior changes.

Add a section to the contributor development guide explaining the
tpch_plan_stability test suite: what the approved golden plans capture,
that they are planned deterministically against a synthetic stats table
(no data or cluster required), and how to regenerate them with
dev/update-tpch-plan-stability.sh when a change intentionally alters
distributed planning.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jul 9, 2026

@milenkovicm milenkovicm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @andygrove

@andygrove andygrove merged commit 647cefe into apache:main Jul 9, 2026
3 checks passed
@andygrove andygrove deleted the docs/tpch-plan-stability-goldens branch July 9, 2026 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants