berkaysynnada commented on code in PR #10117:
URL: https://github.com/apache/datafusion/pull/10117#discussion_r1590633167


##########
datafusion/expr/src/signature.rs:
##########
@@ -346,13 +346,75 @@ impl Signature {
     }
 }
 
-/// Monotonicity of the `ScalarFunctionExpr` with respect to its arguments.
-/// Each element of this vector corresponds to an argument and indicates 
whether
-/// the function's behavior is monotonic, or non-monotonic/unknown for that 
argument, namely:
-/// - `None` signifies unknown monotonicity or non-monotonicity.
-/// - `Some(true)` indicates that the function is monotonically increasing 
w.r.t. the argument in question.
-/// - Some(false) indicates that the function is monotonically decreasing 
w.r.t. the argument in question.
-pub type FuncMonotonicity = Vec<Option<bool>>;
+#[derive(Debug, Clone, PartialEq)]

Review Comment:
   Thanks @tinfoil-knight. I can just say this `PartialEq` derivation could be 
dangerous here. One can expect to see the equality of Increasing and 
vec![Some(true)].



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to