theirix commented on code in PR #20787:
URL: https://github.com/apache/datafusion/pull/20787#discussion_r2970400664


##########
datafusion/physical-expr/src/expressions/binary.rs:
##########
@@ -933,6 +933,18 @@ fn pre_selection_scatter(
 }
 
 fn concat_elements(left: &ArrayRef, right: &ArrayRef) -> Result<ArrayRef> {
+    if *left.data_type() == DataType::Binary && *right.data_type() == 
DataType::Binary {
+        // Cast Binary to Utf8 to validate UTF-8 encoding before concatenation

Review Comment:
   Unfortunately, it cannot be done since a physical expression crate cannot 
depend on functions crate. UDFs and concat operator were always separated.



-- 
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]

Reply via email to