From 1756046b7a04926d5d1ea08e4fb0f91d3cd92443 Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Fri, 20 Jan 2023 13:26:53 -0500 Subject: [PATCH] Minor: improve internal error message --- 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)))