jackwener commented on code in PR #5224:
URL: https://github.com/apache/arrow-datafusion/pull/5224#discussion_r1102335574


##########
datafusion/core/src/physical_plan/planner.rs:
##########
@@ -2191,7 +2190,12 @@ mod tests {
             .build()?;
         let e = plan(&logical_plan).await.unwrap_err().to_string();
 
-        assert_contains!(&e, "The data type inlist should be same, the value 
type is Boolean, one of list expr type is Struct([Field { name: \"foo\", 
data_type: Boolean, nullable: false, dict_id: 0, dict_is_ordered: false, 
metadata: {} }])");
+        assert_contains!(
+            &e,
+            r#"type_coercion
+caused by
+Internal error: Optimizer rule 'type_coercion' failed due to unexpected error: 
Error during planning: Can not find compatible types to compare Boolean with 
[Struct([Field { name: "foo", data_type: Boolean, nullable: false, dict_id: 0, 
dict_is_ordered: false, metadata: {} }]), Utf8]. This was likely caused by a 
bug in DataFusion's code and we would welcome that you file an bug report in 
our issue tracker"#
+        );

Review Comment:
   Agree with you.
   I think we can do it in next PR.



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

Reply via email to