dgvj-work opened a new pull request, #1170: URL: https://github.com/apache/arrow-go/pull/1170
### Rationale for this change Downstream code often needs type-agnostic access to Arrow values as native Go types. `GetOneForMarshal` is JSON-oriented (e.g. `int8` → `float64`, timestamps/decimals as strings), which forces boilerplate type switches for generic ingestion. Fixes #462 ### What changes are included in this PR? - Add `ValueAsAny(i int) any` to `arrow.Array` - Implement it across array types and common extensions so nulls return `nil` and values stay native (`int8`, `arrow.Timestamp`, decimal nums, `[]any` / `map[string]any` for nested types) - Add unit tests covering primitives, temporal/decimal, nested, and dictionary cases, including differences vs `GetOneForMarshal` ### Are these changes tested? - `go test ./arrow/ ./arrow/array/ ./arrow/extensions/` ### Are there any user-facing changes? Yes — new `Array.ValueAsAny` method for native Go value access. Made with [Cursor](https://cursor.com) -- 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]
