planner: fix TPCDS Q64 regression under the new join algorithm (#69637)#69654
planner: fix TPCDS Q64 regression under the new join algorithm (#69637)#69654ti-chi-bot wants to merge 1 commit into
Conversation
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
This cherry pick PR is for a release branch and has not yet been approved by triage owners. To merge this cherry pick:
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. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
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 (2)
📝 WalkthroughWalkthroughThis PR adds two new JSON test data files defining the ChangesTPC-DS Q64 test suite data
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related issues
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 @@
## release-8.5 #69654 +/- ##
================================================
Coverage ? 55.1238%
================================================
Files ? 1849
Lines ? 666253
Branches ? 0
================================================
Hits ? 367264
Misses ? 271613
Partials ? 27376
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
This is an automated cherry-pick of #69637
What problem does this PR solve?
Issue Number: ref #69600
Problem Summary: planner: fix TPCDS Q64 regression under the new CD-C join algorithm
What changed and how does it work?
In TPCDS Q64,
ib1andib2have the same row count, but the old join-order implementation is usingSortStableFuncwhile the new one is usingSortFunc, which leads to this join order change.This PR update the new join-order implementation to also use
SortStableFuncto keep the prior behavior.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