pkg/planner: avoid eliminating max/min over binary literals - #67394
Conversation
Signed-off-by: Weizhen Wang <hawking.rei@gmail.com>
|
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 as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThis PR addresses a regression where Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Tools execution failed with the following error: Failed to run tools: 13 INTERNAL: Received RST_STREAM with code 2 (Internal server error) 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 |
…7040-repro-20260329 # Conflicts: # pkg/planner/core/operator/logicalop/logicalop_test/BUILD.bazel
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #67394 +/- ##
================================================
+ Coverage 77.7922% 79.0335% +1.2413%
================================================
Files 2023 1960 -63
Lines 556481 547051 -9430
================================================
- Hits 432899 432354 -545
+ Misses 121834 113664 -8170
+ Partials 1748 1033 -715
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
/retest |
|
@pantheon-bot review |
|
Review failed due to infrastructure/execution failure after retries. Please re-trigger review. ℹ️ Learn more details on Pantheon AI. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AilinKid, qw4990 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 |
|
/retest |
|
@hawkingrei: The following test failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
What problem does this PR solve?
Issue Number: close #67040
Problem Summary:
MAX/MINover a binary literal can return different results depending on whether theGROUP BYcolumn is rewritten as a unique-key aggregation-elimination case. The eliminated path returned
42with no warning, while the non-eliminated path returned
0with warning1292 Truncated incorrect DOUBLE value: '*'.What changed and how does it work?
MAX/MINwhen the argument is a binary literal.MAXandMINfor unique-key and plainGROUP BYschemas.
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
Bug Fixes
Tests