hcrosse opened a new pull request, #1733: URL: https://github.com/apache/arrow-go/pull/1733
### Rationale for this change Part of #1516, following #1646 which moved `Decimal256` into `arrow/decimal`. Keeping the canonical `Decimal128` implementation in `arrow/decimal128` still leaves an extra package dependency from `arrow/decimal` and splits decimal maintenance across packages. ### What changes are included in this PR? - Move the `Decimal128` struct, constructors, and methods into `arrow/decimal` while keeping the existing little-endian field layout. - Replace the implementation in `arrow/decimal128` with a type alias (`type Num = decimal.Decimal128`), package-level forwarders, and the same exported constants and variables. - Add an inlining stub in `arrow/decimal128` covering all methods of `Num` for [golang/go#82474](https://github.com/golang/go/issues/82474), matching decimal256. - Update internal callers across the main module to use `arrow/decimal` directly, and regenerate the numeric scalar code. ### Are these changes tested? Yes. I added tests for the `Decimal128` layout, constructors, alias parity, and method coverage, and ran the affected package test suites on 64-bit, `linux/386`, and `noasm` builds. ### Are there any user-facing changes? No breaking changes. All exported symbols and signatures in `arrow/decimal128` are preserved as aliases and forwarders, and `arrow/decimal` exports the corresponding `Decimal128` constructors and helpers. -- 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]
