Repository navigation
Avoid formatting in DOUBLE-to-DECIMAL conversions - #31383
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? |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 470a2a0191f9f41ee9455e42a8f59e37e0e7165a
Assessment: approve
Reviewed the complete 11-file delta and frozen discussion. The numeric shortest-value primitive preserves existing rounding, overflow and SQL diagnostic ownership. Measured fallback improvements justify the bounded arithmetic and fixed table. No actionable defects or substantive discussion disputes remain.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
Validation:
-
Full types and SQL function package tests passed using the supplied isolation executor and native artifacts qualified against current inputs.
-
Passed 137,168 shortest-pair fidelity checks, 5,719 value/target cases, 4,143 exponent-class checks and allocation assertions.
-
Regenerated all 696 table entries byte-for-byte; compared the numerical core and generation arithmetic with Go 1.27.1.
-
Sequential base–head–head–base benchmarks showed approximately 29–67% lower scalar fallback time and 26–68% lower vector fallback time, without allocation increases. Control median increases were at most 2.3%.
-
Frozen current-head CI reports successful UT, SCA, shared build, coverage, PROXY BVT and PESSIMISTIC BVT.
-
Saved discussion-assessment.json and reconciled command, source, exit and log evidence in /home/xupeng/.local/state/mo-bot/jobs/6bdbc5da543e842ad9c1c299/attempt-1/validation-manifest.json. Final audit confirmed the source remained unchanged.
Limitations:
-
End-to-end SQL throughput gains remain undetermined; local measurements cover scalar helpers and production vector cast entrypoints.
-
Service BVT was not repeated locally. Frozen CI supplies status metadata, without individual execution logs; author-reported service measurements remain attributed evidence.
Merge Queue Status
This pull request spent 55 minutes 5 seconds in the queue, with no time running CI. 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. Waiting for any of
All conditions
Tick the box to put this pull request back in the merge queue (same as
|
…f926b953dcf5de2a1fb4b5aa2c5ef4a706ca74e
…f926b953dcf5de2a1fb4b5aa2c5ef4a706ca74e
What type of PR is this?
Which issue(s) this PR fixes:
What this PR does / why we need it:
Removes shortest-value text formatting and reparsing from successful DOUBLE-to-DECIMAL64/128 fallback conversions. A private Go 1.27.1 numerical coefficient/exponent primitive preserves shortest-decimal rounding, the existing common-value shortcut, exact integral Decimal128 conversion and cast diagnostics. It includes a reproducible, attributed fixed power table.
This follows merged #31191 (rounding correction), #31279 (common-value shortcut) and #31305 (coverage and measurement). The returned concern was remaining conversion work; the original rounding fix remains intact, including
CAST(1.005e0 AS DECIMAL(10,2)) = 1.01. Existing error/retry formatting and Decimal256 conversion are unchanged.Validation: owning types/function tests, 137,168 shortest-pair checks, 5,719 rational rounding cases, scalar allocation checks, generator reproduction, incremental vet/lint, and two normal 89-statement real-service BVT runs, including metadata, strict rollback and prepared DOUBLE rebinding. Paired five-sample conversion benchmarks on Apple M4 / Go 1.27.1 reduce fallback scalar medians by 38–79% and vector medians by 35–76%, within control budgets and with zero scalar allocations.
A bounded 16M-row A–B–B–A SQL experiment verified all outputs but showed substantial host drift; query throughput benefit remains undetermined. An initially slower integral INSERT control did not repeat in one bounded follow-up. Remote CI is pending.
Please have the reporter verify #31133 after merge.
CI repair validation (
470a2a0191f9f41ee9455e42a8f59e37e0e7165a): preserves the Go-derived BSD headers and adds three exact license-eye path exclusions. Newly executedlicense-eye -c .licenserc.yml header checkpassed (6,983 files, zero invalid),license-eye -c .licenserc.yml dep checkpassed, and an unlicensed neighboring Go-file control was correctly rejected. Build and coverage UT results from8467a69b316f16529042c211fb87a32f2220e57eare reused because all executable sources, tests and build inputs are unchanged. Full SCA on this repair remains pending.