Ritesh17rb opened a new pull request, #398: URL: https://github.com/apache/datafusion-spark/pull/398
## Which issue does this PR close? Closes #207. ## Rationale for this change Spark features currently use DataFusion's `lower`, which rejects binary input, and do not register `lcase`. Spark accepts both names and decodes malformed binary input with replacement before lowercasing. ## What changes are included in this PR? - Register `lower` and its `lcase` alias with shared Spark input coercion. - Reuse DataFusion's Unicode mapping and the existing UTF-8 repair kernel for binary input. - Preserve string layouts and input nullability; add regression tests and generated documentation. This targets UTF8_BINARY with Spark 4.2's default case mappings. Locale-specific collations and the JVM fallback are outside this PR. Remaining implicit CAST formatting differences are tracked by #88. ## Are these changes tested? `lower.slt` and `lcase.slt` cover scalar/column input, all string layouts, dictionaries, ASCII and Unicode, contextual sigma, dotted-I expansion, supplementary characters, NULLs, binary decoding and both ANSI modes. A unit test checks return layout and nullability. The Spark 4.2.0 runner passes all 103 comparable records; ten runner-specific records are skipped, with no expected failures. Formatting, workspace Clippy, 596 library tests, five documentation tests, all 516 SQL test runs and documentation generation pass. ## Are there any user-facing changes? Spark mode now provides `lcase` and accepts binary input for both names, including malformed UTF-8. Existing Unicode lowercase behavior is pinned by Spark-verified tests. -- 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]
