fallintoplace opened a new pull request, #897:
URL: https://github.com/apache/arrow-go/pull/897
## Summary
### Problem
`StringViewBuilder.UnmarshalOne` reports a `json.UnmarshalTypeError` with an
expected type of `[]byte{}` for unsupported token types.
### Change
- Update `StringViewBuilder.UnmarshalOne` to report `reflect.TypeOf("")`
when an unsupported JSON token is encountered.
- Add regression test `TestStringViewBuilderUnmarshalOneWrongType` in
`arrow/array/string_test.go`.
### Impact
- Aligns error diagnostics with `StringBuilder` behavior.
- Makes JSON import debugging clearer for users expecting string inputs.
### Testing
- Added a focused regression test that asserts the reported expected type is
`string` for unsupported JSON token input.
- No full test run in this PR (single-path, message-type assertion).
--
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]