eddietejeda opened a new pull request, #24867: URL: https://github.com/apache/datafusion/pull/24867
## Which issue does this PR close? - Closes #24765. ## Rationale for this change `octet_length` should count the raw bytes of binary data without expensive encoding workaround. ## What changes are included in this PR? - Adds support for `Binary`, `LargeBinary`, and `BinaryView`. - Returns `Int64` for `LargeBinary` and `Int32` for the other types. - Updates the error message to say “strings or binary.” ## What is the testing strategy for this PR? Unit and SQL logic tests cover binary arrays and scalars, non-UTF-8 data, nulls, dictionary encoding, and return types. ## Are there any user-facing changes? Yes. `octet_length` now counts the raw bytes of binary values. Existing string behavior is unchanged. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
