fallintoplace opened a new pull request, #1034: URL: https://github.com/apache/arrow-go/pull/1034
### Rationale for this change `DecimalSize` uses a lookup table through precision 76 and a formula above that range. The fallback applied `ceil` before multiplying by `log2(10)`, producing widths larger than the documented minimum. For example, precision 77 returned 34 bytes instead of 33. ### What changes are included in this PR? Apply the documented two-complement width formula as `ceil((precision * log2(10) + 1) / 8)` for precisions above 76, and correct the existing precision-77 schema fixture. ### Are these changes tested? Yes. Regression cases cover precisions 77, 80, and 100. The full `parquet/pqarrow` package passes. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
