You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Compatibility]: TIMESTAMPDIFF overcounts calendar periods at time-of-day boundaries #28569
Triage routing: assigned to @jiangxinmeng1. Labels normalized to kind/bug + needs-triage (existing compatibility labels, when present, are retained).
Recommended PR decomposition:
PR-T3 — calendar interval arithmetic (#28569 only): fix complete-month/quarter/year boundary calculation, including time-of-day and microseconds and negative intervals. Keep the arithmetic contract isolated from parsing and time-zone conversion.
Suggested priority: P2; add boundary tests for exact, one-microsecond-before, and negative intervals.
QA handoff after merged PR #28851 (merge a99db843c7b4630a86883addc9424433d93fc2d2). This issue was a non-closing related report; the merge and shared BVT counts are not an independent PASS for this reproducer.
Latest MatrixOne contract: C21 in the merged temporal design. TIMESTAMPDIFF YEAR/QUARTER/MONTH counts complete elapsed calendar periods using day and time remainders; valid reversed arguments negate the result.
Please rerun the original reproducer on main at or after the merge and record the exact SHA, deployment, SQL mode/time zone, client path, observed rows/types/NULLs and active warnings or errors. Rerun the original one-microsecond boundary and Jan31/Feb28/29 controls for typed and string inputs.
Keep the issue open until the issue-specific acceptance is demonstrated with happy and unhappy controls. If any part still fails, post the exact observed-versus-expected result and return it to development; if it passes, record evidence and close the issue. @Ariznawlll
Activity
XuPeng-SH commentedon Sep 10, 2026
Triage routing: assigned to @jiangxinmeng1. Labels normalized to
kind/bug+needs-triage(existing compatibility labels, when present, are retained).Recommended PR decomposition:
#28569only): fix complete-month/quarter/year boundary calculation, including time-of-day and microseconds and negative intervals. Keep the arithmetic contract isolated from parsing and time-zone conversion.Suggested priority: P2; add boundary tests for exact, one-microsecond-before, and negative intervals.
fix: align date compatibility semantics (#28851)
XuPeng-SH commentedon Sep 27, 2026
QA handoff after merged PR #28851 (merge
a99db843c7b4630a86883addc9424433d93fc2d2). This issue was a non-closing related report; the merge and shared BVT counts are not an independent PASS for this reproducer.Latest MatrixOne contract: C21 in the merged temporal design. TIMESTAMPDIFF YEAR/QUARTER/MONTH counts complete elapsed calendar periods using day and time remainders; valid reversed arguments negate the result.
Please rerun the original reproducer on
mainat or after the merge and record the exact SHA, deployment, SQL mode/time zone, client path, observed rows/types/NULLs and active warnings or errors. Rerun the original one-microsecond boundary and Jan31/Feb28/29 controls for typed and string inputs.Keep the issue open until the issue-specific acceptance is demonstrated with happy and unhappy controls. If any part still fails, post the exact observed-versus-expected result and return it to development; if it passes, record evidence and close the issue. @Ariznawlll
Ariznawlll commentedon Oct 2, 2026
测试版本
maind50a2d475a406829f67127fef7b2ad4abc1c1d3dmo-service,独立数据目录;MySQL 文本协议与 server-side PREPARE原问题验证
按 issue 原始语义在上述 commit 重新执行并重复 3 次。日期加减 MONTH/QUARTER/YEAR 在月末边界使用正确截断/进位规则。
Happy Path 覆盖
覆盖闰年、月末、季度和年份正负增量。
Unhappy Path 覆盖
覆盖 0001/9999 越界、NULL 与非法 interval;返回受控 NULL/诊断。
白盒验证
关联修复 #28851 已进入当前
main。同时将本 issue 的可公开观察契约固化为独立回归,避免只依赖实现细节或共享测试间接判断。回归测试
suites/14_issue_regression/t/issue_recent_temporal_contracts.test714/714条语句通过。测试证据
d50a2d475a406829f67127fef7b2ad4abc1c1d3d14_issue_regression中观察到的旧 GOROOT/历史 golden/并发锁冲突属于既有无关失败,以上新增用例单独重跑均稳定通过。测试结论
测试通过。