ReguiguiMohamed opened a new pull request, #1708:
URL: https://github.com/apache/arrow-go/pull/1708
### Rationale for this change
`scalar.ParseScalar` returns "parsing of scalar for type large_utf8 not
implemented" for `large_string`, and the same for `large_binary`.
`String.CastTo` goes through `ParseScalar`, so
`NewStringScalar("x").CastTo(arrow.BinaryTypes.LargeString)` fails, and a
`large_string` scalar can't even be cast to its own type. The string, view and
binary types already work.
### What changes are included in this PR?
Two cases in `ParseScalar`, built the same way as their `string` and
`binary` neighbours.
### Are these changes tested?
Yes. `TestParseLargeStringAndLargeBinary` parses both types and casts a
string scalar to `large_string`. It fails on main with the error above and
passes with the fix. `go test -short -tags assert,test ./arrow/scalar/...`
passes, with and without `noasm`, on Windows amd64.
### Are there any user-facing changes?
`ParseScalar` accepts `large_string` and `large_binary`, and string scalars
cast to them.
--
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]