Skip to content

Commit

Permalink
feat: not debug field precompiled_regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuliquan committed Jul 19, 2024
1 parent 6f3127d commit de5735b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion datafusion/physical-expr/src/expressions/binary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ use kernels::{
};

/// Binary expression
#[derive(Debug, Clone)]
#[derive(Clone)]
pub struct BinaryExpr {
left: Arc<dyn PhysicalExpr>,
op: Operator,
Expand Down Expand Up @@ -142,6 +142,18 @@ impl std::hash::Hash for BinaryExpr {
}
}

impl std::fmt::Debug for BinaryExpr {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f
.debug_struct("BinaryExpr")
.field("left", &self.left)
.field("op", &self.op)
.field("right", &self.right)
.field("fail_on_overflow", &self.fail_on_overflow)
.finish()
}
}

impl std::fmt::Display for BinaryExpr {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
// Put parentheses around child binary expressions so that we can see the difference
Expand Down

0 comments on commit de5735b

Please sign in to comment.