Repository navigation
fix temporal - #25730
fix temporal#25730
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
Merge Queue Status
This pull request spent 1 hour 8 minutes 11 seconds in the queue, with no time running CI. Waiting for any of
All conditions
ReasonPull request #25730 has been dequeued Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.
Failing checks: HintYou should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. Tick the box to put this pull request back in the merge queue (same as
|
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#25228 matrixorigin#25229 matrixorigin#25263 ## What this PR does / why we need it: 将 MatrixOne 的 temporal 数值转换改为 MySQL packed 格式: - DATE -> signed/decimal:YYYYMMDD - DATETIME -> signed/decimal:YYYYMMDDHHMMSS[.ffffff] - TIMESTAMP -> signed/decimal:先按 session time_zone 转为本地 DATETIME,再使用 packed 值 - YEAR -> decimal64/decimal128:直接使用年份数值 - DATETIME/TIMESTAMP 与整数运算、比较时,中间类型提升为 DECIMAL128,避免 packed 值超过 decimal64 范围 - 补齐 DATE/YEAR -> DECIMAL64/128 的 CAST overload 支持,解决 binder 拒绝而执行层已实现的问题 - 新增 UT 和 BVT,覆盖 packed 值、scale/微秒、YEAR、TIMESTAMP 时区、以及 INT32 无法容纳 packed DATETIME/TIMESTAMP 时的明确 out-of-range 错误 TIME 数值转换、temporal 与字符串比较、zero temporal value 等行为未纳入此分支。 --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#25228 matrixorigin#25229 matrixorigin#25263 ## What this PR does / why we need it: 将 MatrixOne 的 temporal 数值转换改为 MySQL packed 格式: - DATE -> signed/decimal:YYYYMMDD - DATETIME -> signed/decimal:YYYYMMDDHHMMSS[.ffffff] - TIMESTAMP -> signed/decimal:先按 session time_zone 转为本地 DATETIME,再使用 packed 值 - YEAR -> decimal64/decimal128:直接使用年份数值 - DATETIME/TIMESTAMP 与整数运算、比较时,中间类型提升为 DECIMAL128,避免 packed 值超过 decimal64 范围 - 补齐 DATE/YEAR -> DECIMAL64/128 的 CAST overload 支持,解决 binder 拒绝而执行层已实现的问题 - 新增 UT 和 BVT,覆盖 packed 值、scale/微秒、YEAR、TIMESTAMP 时区、以及 INT32 无法容纳 packed DATETIME/TIMESTAMP 时的明确 out-of-range 错误 TIME 数值转换、temporal 与字符串比较、zero temporal value 等行为未纳入此分支。 --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue matrixorigin#25228 matrixorigin#25229 matrixorigin#25263 ## What this PR does / why we need it: 将 MatrixOne 的 temporal 数值转换改为 MySQL packed 格式: - DATE -> signed/decimal:YYYYMMDD - DATETIME -> signed/decimal:YYYYMMDDHHMMSS[.ffffff] - TIMESTAMP -> signed/decimal:先按 session time_zone 转为本地 DATETIME,再使用 packed 值 - YEAR -> decimal64/decimal128:直接使用年份数值 - DATETIME/TIMESTAMP 与整数运算、比较时,中间类型提升为 DECIMAL128,避免 packed 值超过 decimal64 范围 - 补齐 DATE/YEAR -> DECIMAL64/128 的 CAST overload 支持,解决 binder 拒绝而执行层已实现的问题 - 新增 UT 和 BVT,覆盖 packed 值、scale/微秒、YEAR、TIMESTAMP 时区、以及 INT32 无法容纳 packed DATETIME/TIMESTAMP 时的明确 out-of-range 错误 TIME 数值转换、temporal 与字符串比较、zero temporal value 等行为未纳入此分支。 --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
What type of PR is this?
Which issue(s) this PR fixes:
issue #25228
#25229
#25263
What this PR does / why we need it:
将 MatrixOne 的 temporal 数值转换改为 MySQL packed 格式:
TIME 数值转换、temporal 与字符串比较、zero temporal value 等行为未纳入此分支。