Skip to content

Commit

Permalink
chore: Add datatype info to error message
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Apr 30, 2024
1 parent dd56837 commit 97302dc
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions datafusion/physical-plan/src/joins/sort_merge_join.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1517,10 +1517,11 @@ fn compare_join_arrays(
},
DataType::Date32 => compare_value!(Date32Array),
DataType::Date64 => compare_value!(Date64Array),
_ => {
return not_impl_err!(
"Unsupported data type in sort merge join comparator"
);
dt => {
return not_impl_err!("{}", format!(
"Unsupported data type in sort merge join comparator: {}",
dt
));
}
}
if !res.is_eq() {
Expand Down Expand Up @@ -1583,10 +1584,11 @@ fn is_join_arrays_equal(
},
DataType::Date32 => compare_value!(Date32Array),
DataType::Date64 => compare_value!(Date64Array),
_ => {
return not_impl_err!(
"Unsupported data type in sort merge join comparator"
);
dt => {
return not_impl_err!("{}", format!(
"Unsupported data type in sort merge join comparator: {}",
dt
));
}
}
if !is_equal {
Expand Down

0 comments on commit 97302dc

Please sign in to comment.