Repository navigation
planner: migrate EXPLAIN output in integration_test.go to format='plan_tree' - #67435
Conversation
…plan_tree'` Convert non-analyze `EXPLAIN` tests in pkg/planner/core/integration_test.go to use `format='plan_tree'`. This strips operator ID suffixes, omits estRows, and normalizes Column#N to Column. `EXPLAIN ANALYZE` tests still use `format='brief'` since `format='plan_tree'` is not supported by `EXPLAIN ANALYZE`.
|
Review failed due to infrastructure/execution failure after retries. Please re-trigger review. ℹ️ Learn more details on Pantheon AI. |
|
Hi @henrybw. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughSwitched multiple planner integration tests in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.11.4)Command failed Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #67435 +/- ##
================================================
- Coverage 77.8038% 77.5546% -0.2492%
================================================
Files 2023 1943 -80
Lines 556529 543320 -13209
================================================
- Hits 433001 421370 -11631
- Misses 121782 121948 +166
+ Partials 1746 2 -1744
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
[LGTM Timeline notifier]Timeline:
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hawkingrei, qw4990, terry1purcell The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What problem does this PR solve?
Issue Number: ref #67112
Problem Summary: Test cases that rely on
EXPLAINoutput informat='brief'orformat='verbose', but only need to validate the structure of the plan, are brittle and will start failing if minor changes in row estimates or table schema occur. This requires regenerating a large number of new plans for optimizer tests when making changes, adding noise to PR diffs and obscuring potential problems that these tests may have otherwise caught.What changed and how does it work?
Convert non-analyze
EXPLAINtests in pkg/planner/core/integration_test.go to useformat='plan_tree'. This strips operator ID suffixes, omitsestRows, and normalizes "Column#N" to "Column". This also necessitates updating a number of column indices, becauseestRowsis no longer included for example.EXPLAIN ANALYZEtests still useformat='brief'sinceformat='plan_tree'is not supported byEXPLAIN ANALYZE.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.
Summary by CodeRabbit