wjones127 opened a new pull request, #34549: URL: https://github.com/apache/arrow/pull/34549
### Rationale for this change We rely on scalar casting to create partition values. Some systems, such as Polars, always use LargeString arrays instead of String, so we need to make sure we can handle those partition values correctly. ### What changes are included in this PR? Adds casting function for `LargeStringScalar` and `LargeBinaryScalar` to `StringScalar`. Tests that we correctly format Hive partition values for large string. ### Are these changes tested? The casting functions are implicitly tested in other places (like the test added). There are no existing tests for `CastTo` for binary/string scalars. ### Are there any user-facing changes? Fixes a bug. -- 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]
