From cff53a0536c12f2a497aa4133b175e63f321ef29 Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Sat, 21 Jan 2023 09:56:08 +0100 Subject: [PATCH] Minor: improve internal error message (#5006) --- datafusion/physical-expr/src/expressions/binary.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datafusion/physical-expr/src/expressions/binary.rs b/datafusion/physical-expr/src/expressions/binary.rs index 149eee593424..df90be163864 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)))