Skip to content

Commit

Permalink
Minor: improve internal error message (#5006)
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb authored Jan 21, 2023
1 parent 1d69f28 commit cff53a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datafusion/physical-expr/src/expressions/binary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ pub fn binary(
let rhs_type = &rhs.data_type(input_schema)?;
if !lhs_type.eq(rhs_type) {
return Err(DataFusionError::Internal(format!(
"The type of {lhs_type} {op} {rhs_type} of binary physical should be same"
"The type of {lhs_type} {op:?} {rhs_type} of binary physical should be same"
)));
}
Ok(Arc::new(BinaryExpr::new(lhs, op, rhs)))
Expand Down

0 comments on commit cff53a0

Please sign in to comment.