nuno-faria commented on code in PR #24052:
URL: https://github.com/apache/datafusion/pull/24052#discussion_r3706644657


##########
datafusion/expr/src/logical_plan/builder.rs:
##########
@@ -283,7 +283,7 @@ impl LogicalPlanBuilder {
                     && !can_cast_types(&data_type, field_type)
                 {
                     return exec_err!(
-                        "type mismatch and can't cast to got {} and {}",
+                        "Type mismatch and can't cast, received data of type 
{} for field of type {}",

Review Comment:
   The original part sounds a bit odd to me. What do you think about "Types 
don't match and no valid cast exists, ..."



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