chore: release main#88
Merged
Merged
Conversation
Patch release addressing NUMERIC value issues in MCP query results and Node bindings, including sign loss and decoding errors.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 I have created a release beep boop
0.3.1
0.3.1 (2026-05-29)
Bug Fixes
Numeric::Displayno longer drops the sign for sub-unit negatives. Values in the open interval(-1, 0)previously rendered without the minus sign —Numeric::new(-5000, 4).to_string()returned"0.5000"instead of"-0.5000". The Display impl now computes the sign explicitly and formats the magnitude viaunsigned_abs(), which also removes a latenti128::MINoverflow panic. This silently flipped the sign of any correlation, 0-1 index, or regression residual that crossed the stringify path — including the MCPquerytool's JSON serialization. (#84, #86)NUMERICcolumns no longer decode as garbage / NaN.extract_rowand the columnar fast path were callingrow.get_f64()forSqlType::Numericcolumns, which reinterpreted the unscaled-integer bytes as IEEE-754 doubles. Every NUMERIC cell was wrong, regardless of sign. The bindings now use schema-awarerow.get_numeric(), which honors the column scale and dispatches on wire form.getStringreturns the exact decimal text (preserving scale and sign),getFloat64returns the lossy-but-correct double,getInt32/getInt64return the truncated integer, and the columnargetFloat64Columnreturns correctf64values. Related to #84.getBigIntnow preserves precision onNUMERIC(p, 0)columns. PreviouslygetBigIntreturnednullfor any NUMERIC cell. It now preserves the full 128-bit unscaled value for integer-shaped numerics — use it instead ofgetInt64for NUMERIC integer values aboveNumber.MAX_SAFE_INTEGER. OnNUMERIC(p, scale>0)columns it returnsnull(usegetStringfor exact text orgetFloat64for a lossy value). Related to #84.This PR was generated with Release Please. See documentation.