Repository navigation
fix(frontend): report unspecified floating-point decimals - #26709
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? |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Reviewed exact head 6b865144fa8e6d9a56d19731327723aafff4d35c. No blocking findings.
The fix addresses the protocol-level cause: unspecified FLOAT/DOUBLE result scales now use MySQL's 0x1f sentinel, so binary-protocol clients converting native floats to strings no longer round according to a false scale of zero. Explicit (M,0) and (M,D) declarations retain their declared scale.
I traced the shared metadata path across regular query results, COM_STMT_PREPARE, cached column-definition packets, and RETURNING. I also checked the planner/parser representations for unqualified FLOAT/DOUBLE, FLOAT(M), explicit scales, and computed float expressions; the predicate covers the unspecified forms without conflating explicit zero scale.
Validation performed:
- focused protocol and metadata tests, including an additional temporary table-column/type-shape matrix
- full
go test ./pkg/frontend go build ./pkg/frontendgo vet ./pkg/frontend- readonly module resolution and
git diff --check
Merge Queue Status
This pull request spent 2 hours 51 minutes 46 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 ↓. |
Use MySQL's 0x1f sentinel for unscaled FLOAT and DOUBLE column metadata while preserving explicit display scales.\n\nFixes matrixorigin#26682
Merge Queue Status
This pull request spent 19 seconds in the queue, including 2 seconds running CI. Required conditions to merge
|
…in#26709) fix(frontend): report unspecified floating-point decimals Approved by: @XuPeng-SH
…in#26709) fix(frontend): report unspecified floating-point decimals Approved by: @XuPeng-SH
…in#26709) fix(frontend): report unspecified floating-point decimals Approved by: @XuPeng-SH
Use MySQL's 0x1f sentinel for unscaled FLOAT and DOUBLE column metadata while preserving explicit display scales.\n\nFixes #26682
What type of PR is this?
Which issue(s) this PR fixes:
issue #26682
What this PR does / why we need it:
fix(frontend): report unspecified floating-point decimals