EdwardShen125 opened a new pull request, #1671: URL: https://github.com/apache/arrow-go/pull/1671
Adds utf8_length, utf8_upper and utf8_lower over utf8, large_utf8 and string_view, matching the C++ kernels: utf8_length counts Unicode code points with the output width following the offset width (utf8 -> int32, large_utf8 -> int64), and utf8_upper/utf8_lower map each code point with Go's simple Unicode case mappings (the unicode.ToUpper/ToLower equivalent of the C++ utf8proc calls), return the input type, and fail on invalid UTF-8. The string_view kernels are a Go addition: the C++ registry registers these functions for utf8 and large_utf8 only. One follow-up worth a separate issue: BinaryViewBuilder.Release does not free the out-of-line blocks reserved by ReserveData, so discarding a view builder with reserved data leaks. The error path here works around that by materializing the partial result. Fixes #1475 AI-assisted, reviewed by a human. -- 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]
