vaibhawvipul commented on code in PR #552:
URL: https://github.com/apache/datafusion-comet/pull/552#discussion_r1635288917
##########
core/src/execution/datafusion/expressions/scalar_funcs/chr.rs:
##########
@@ -110,7 +118,7 @@ fn handle_chr_fn(args: &[ColumnarValue]) ->
Result<ColumnarValue> {
Some(ch) => Ok(ColumnarValue::Scalar(ScalarValue::Utf8(Some(
ch.to_string(),
)))),
- None => exec_err!("requested character too large for
encoding."),
+ None => exec_err!("requested character was incompatible for
encoding."),
Review Comment:
Added a test for scalar values to verify the corresponding code paths and
removed the cases that were unreachable.
--
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]