Skip to content

Apache DataFusion SQL Query Engine

Minor: improve internal error message (#5006)

Andrew Lambcff53a0536c1
diff --git a/datafusion/physical-expr/src/expressions/binary.rs b/datafusion/physical-expr/src/expressions/binary.rs
index 149eee5934..df90be1638 100644
--- a/datafusion/physical-expr/src/expressions/binary.rs
+++ b/datafusion/physical-expr/src/expressions/binary.rs
@@ -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)))