Skip to content

fix(c/driver/postgresql): preserve zero integer groups when writing NUMERIC - #4523

Merged
lidavidm merged 1 commit into
apache:mainfrom
Mandukhai-Alimaa:fix/ingest-numeric-bug
Jul 15, 2026
Merged

fix(c/driver/postgresql): preserve zero integer groups when writing NUMERIC#4523
lidavidm merged 1 commit into
apache:mainfrom
Mandukhai-Alimaa:fix/ingest-numeric-bug

Conversation

@Mandukhai-Alimaa

@Mandukhai-Alimaa Mandukhai-Alimaa commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

There was a bug in the PostgreSQL NUMERIC writer where trailing zero base-10000 groups in the integer portion were incorrectly dropped. When the value also had a non-zero fractional part, this caused the serialized digit groups to become misaligned with the computed weight, shifting fractional digits into the integer part.

Closes #4507

@Mandukhai-Alimaa Mandukhai-Alimaa changed the title fix(postgresql): preserve zero integer groups when writing NUMERIC fix(c/driver/postgresql): preserve zero integer groups when writing NUMERIC Jul 14, 2026
@lidavidm
lidavidm merged commit d357c9c into apache:main Jul 15, 2026
81 of 91 checks passed
@lidavidm lidavidm added this to the ADBC Libraries 24 milestone Jul 22, 2026
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.

[python][postgresql] adbc_ingest silently corrupts NUMERIC when the integer part is a non-zero multiple of 10^9

2 participants