Skip to content

Commit de5735b

Browse files
committed
feat: not debug field precompiled_regexp
1 parent 6f3127d commit de5735b

File tree

1 file changed

+13
-1
lines changed
  • datafusion/physical-expr/src/expressions

1 file changed

+13
-1
lines changed

datafusion/physical-expr/src/expressions/binary.rs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ use kernels::{
4747
};
4848

4949
/// Binary expression
50-
#[derive(Debug, Clone)]
50+
#[derive(Clone)]
5151
pub struct BinaryExpr {
5252
left: Arc<dyn PhysicalExpr>,
5353
op: Operator,
@@ -142,6 +142,18 @@ impl std::hash::Hash for BinaryExpr {
142142
}
143143
}
144144

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+
145157
impl std::fmt::Display for BinaryExpr {
146158
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
147159
// Put parentheses around child binary expressions so that we can see the difference

0 commit comments

Comments
 (0)