Skip to content

Fix DECIMAL bugs - #654

Merged
evertlammerts merged 1 commit into
duckdb:v2.0-cyanopterafrom
evertlammerts:fix-decimal-positive-exponent
Oct 14, 2026
Merged

evertlammerts merged 1 commit into
duckdb:v2.0-cyanopterafrom
evertlammerts:fix-decimal-positive-exponent

Conversation

@evertlammerts

Copy link
Copy Markdown
Member

Decimal('1E+2') now converts to DECIMAL(3,0) 100 instead of 1.00. Inferred type and value always agree. Too-wide values fall back to DOUBLE, including exponents of 256 and up and exponents beyond 32 bits.

Fixes #566

@evertlammerts
evertlammerts merged commit 2a11559 into duckdb:v2.0-cyanoptera Oct 14, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Decimal with a positive exponent is silently stored as its mantissa (Decimal('1E+2') → 1)

1 participant