test(bvt): add WEEK and YEARWEEK function test cases#24295
Open
Ariznawlll wants to merge 9 commits intomatrixorigin:3.0-devfrom
Open
test(bvt): add WEEK and YEARWEEK function test cases#24295Ariznawlll wants to merge 9 commits intomatrixorigin:3.0-devfrom
Ariznawlll wants to merge 9 commits intomatrixorigin:3.0-devfrom
Conversation
, matrixorigin#24234) Add comprehensive BVT cases for WEEK(date, mode) and YEARWEEK(date, mode) to verify MySQL compatibility after the functions were implemented. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
ⓘ You've reached your Qodo monthly free-tier limit. Reviews pause until next month — upgrade your plan to continue now, or link your paid account if you already have one. |
|
Ariznawl@163.com seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
…n#24235) Add BVT cases for arithmetic expressions inside INTERVAL clause, including modulo, addition, multiplication, and the NL2SQL week calculation pattern: INTERVAL (DAYOFWEEK(date)+5)%7 DAY. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…#24298 matrixorigin#24299 fixes - Remove @Label:bvt tags (verified, not marking as BVT) - Regenerate result files against 3.0-dev @ f9f1981 - Update WEEK single-arg result (now respects default_week_format) - Update INTERVAL arithmetic results (parenthesized expr fixed) - Update YEARWEEK result for NULL mode Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
heni02
approved these changes
May 7, 2026
The yearweek.test was rewritten but result file was stale (from old test content), causing CI to mark all 91 cases as abnormal. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
XuPeng-SH
approved these changes
May 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
WEEK(date, mode)function (93 cases) to verify fix for [Bug]: WEEK(date, mode) two-argument form rejected with 'bad value [DATE BIGINT]' #24236YEARWEEK(date[, mode])function (91 cases) to verify fix for [Bug]: YEARWEEK function not supported #24234Test plan
func_datetime_week.test— 93 cases, 100% pass via mo-testerfunc_datetime_yearweek.test— 91 cases, 100% pass via mo-testerfunc_datetime_interval_arithmetic.test— 58 cases, 100% pass via mo-testerRelated: #24236, #24234, #24235, #24293
🤖 Generated with Claude Code