alamb commented on code in PR #2718: URL: https://github.com/apache/arrow-datafusion/pull/2718#discussion_r896076556
########## datafusion/core/src/physical_plan/planner.rs: ########## @@ -1544,20 +1540,22 @@ mod tests { .build()?; let execution_plan = plan(&logical_plan).await; - let expected_error = "Unsupported CAST from Utf8 to Boolean"; - match execution_plan { - Ok(_) => panic!("Expected planning failure"), - Err(e) => assert!( - e.to_string().contains(expected_error), - "Error '{}' did not contain expected error '{}'", - e, - expected_error - ), - } + let e = execution_plan.unwrap_err().to_string(); + assert_contains!(&e, "Unsupported CAST from Struct"); + assert_contains!(&e, "to Boolean"); Ok(()) } + /// Return a `null` literal representing a struct type like: `{ a: bool }` + fn struct_literal() -> Expr { Review Comment: Casting from `Utf8` to `Struct` is still not supported -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org