neilconway opened a new pull request, #22077:
URL: https://github.com/apache/datafusion/pull/22077
## Which issue does this PR close?
- Closes #22076.
## Rationale for this change
`format_string("%c")` in `datafusion-spark` calls `char::from_u32.unwrap()`
without checking for a `None` return, which leads to panicking on invalid
inputs (e.g., negative values and illegal Unicode codepoints).
## What changes are included in this PR?
* Add error handling for `format_string("%c")`
* Rust unit tests
* SLT end-to-end test
## Are these changes tested?
Yes.
## Are there any user-facing changes?
No.
--
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]