File tree 1 file changed +13
-1
lines changed
datafusion/physical-expr/src/expressions
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ use kernels::{
47
47
} ;
48
48
49
49
/// Binary expression
50
- #[ derive( Debug , Clone ) ]
50
+ #[ derive( Clone ) ]
51
51
pub struct BinaryExpr {
52
52
left : Arc < dyn PhysicalExpr > ,
53
53
op : Operator ,
@@ -142,6 +142,18 @@ impl std::hash::Hash for BinaryExpr {
142
142
}
143
143
}
144
144
145
+ impl std:: fmt:: Debug for BinaryExpr {
146
+ fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
147
+ f
148
+ . debug_struct ( "BinaryExpr" )
149
+ . field ( "left" , & self . left )
150
+ . field ( "op" , & self . op )
151
+ . field ( "right" , & self . right )
152
+ . field ( "fail_on_overflow" , & self . fail_on_overflow )
153
+ . finish ( )
154
+ }
155
+ }
156
+
145
157
impl std:: fmt:: Display for BinaryExpr {
146
158
fn fmt ( & self , f : & mut std:: fmt:: Formatter ) -> std:: fmt:: Result {
147
159
// Put parentheses around child binary expressions so that we can see the difference
You can’t perform that action at this time.
0 commit comments