Vyrham opened a new pull request, #448: URL: https://github.com/apache/datafusion-spark/pull/448
Closes #206. Implements Spark-compatible `upper` with `ucase` as an alias, wrapping DataFusion's `UpperFunc` kernel (full Unicode case mapping on code points with an ASCII fast path) and adding Spark's `ImplicitCastInputTypes` so other atomic values are cast to STRING first, plus NULL-intolerant nullability and input-type-preserving return type. Includes Rust unit tests and sqllogictest coverage (`string/upper.slt`, `string/ucase.slt`) with the issue's examples, and updates the function docs. Notes for reviewers: - The docs in `docs/functions/` were updated by hand following the docgen format; please let me know if `dev/update_function_docs.sh` produces anything different and I will align them. - Known limitations to confirm: non-default collations are treated as UTF8_BINARY (root locale) rather than erroring, since DataFusion has no collation concept; `ucase(...)` displays as `upper(...)` in plans, as DataFusion has no alias-preserving prettyName; invalid UTF-8 binary input errors on cast instead of producing U+FFFD (part of the broader CAST work in #88). -- 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]
