Repository navigation
fix cast digital string - #25449
fix cast digital string#25449
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 28 minutes 31 seconds in the queue, with no time running CI. Waiting for
All conditions
ReasonThe merge conditions cannot be satisfied due to failing checks Failing checks:
HintYou may have to fix your CI before adding the pull request to the queue again. Requeued — the merge queue status continues in this comment ↓. |
Merge Queue Status
This pull request spent 2 hours 40 minutes 16 seconds in the queue, with no time running CI. Waiting for any of
All conditions
ReasonThe merge conditions cannot be satisfied due to failing checks Failing checks: HintYou may have to fix your CI before adding the pull request to the queue again. Requeued — the merge queue status continues in this comment ↓. |
Merge Queue Status
This pull request spent 2 hours 6 minutes 3 seconds in the queue, including 18 minutes 26 seconds running CI. Waiting for
All conditions
ReasonThe merge conditions cannot be satisfied due to failing checks
Failing checks:
HintYou may have to fix your CI before adding the pull request to the queue again. Requeued — the merge queue status continues in this comment ↓. |
Merge Queue Status
This pull request spent 4 hours 1 minute 44 seconds in the queue, with no time running CI. ReasonThe pull request can't be updated
HintYou should update or rebase your pull request manually. If you do, this pull request will automatically be requeued once the queue conditions match again. Tick the box to put this pull request back in the merge queue (same as
|
What type of PR is this?
Which issue(s) this PR fixes:
issue #25243
#25265
What this PR does / why we need it:
扩展了 matrixone的数字字符串转数字. 与postgresql的行为接近, 也常识接近.
与mysql 不同, mysql都是返回0, 违背常识.
在 func_cast.go 中新增统一的严格 numeric token 解析逻辑。
支持前缀:
0123 这类仅前导 0 的字符串仍按十进制解析。
+ / -只允许作为最外层最终符号。+/-后面的 body 必须能完整按目标类型解析,否则报错。拒绝非法符号组合:
+-1++1--1- 1+ 1unsigned 保持规则:
decimal cast 支持 radix 前缀,并按目标 scale 输出: