Skip to content

Commit

Permalink
Add debug print statement for planning errors in coerce_case_expression
Browse files Browse the repository at this point in the history
  • Loading branch information
kosiew committed Jan 20, 2025
1 parent 522459e commit 440a9c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions datafusion/optimizer/src/analyzer/type_coercion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,7 @@ fn coerce_case_expression(case: Case, schema: &DFSchema) -> Result<Case> {
let then_else_coerce_type =
get_coerce_type_for_case_expression(&then_types, else_type.as_ref()).ok_or_else(
|| {
println!("==> planning error");
plan_datafusion_err!(
"Failed to coerce then ({then_types:?}) and else ({else_type:?}) \
to common types in CASE WHEN expression"
Expand Down

0 comments on commit 440a9c0

Please sign in to comment.