buraksenn commented on code in PR #14307:
URL: https://github.com/apache/datafusion/pull/14307#discussion_r1931225250
##########
datafusion/functions/src/math/monotonicity.rs:
##########
@@ -558,3 +558,441 @@ pub fn get_tanh_doc() -> &'static Documentation {
.build()
})
}
+
+#[cfg(test)]
+mod tests {
+ use arrow::compute::SortOptions;
+ use datafusion_common::Result;
+
+ use super::*;
+
+ #[derive(Debug)]
+ struct MonotonicityTestCase {
+ name: &'static str,
+ func: fn(&[ExprProperties]) -> Result<SortProperties>,
+ lower: f64,
+ upper: f64,
+ input_sort: SortProperties,
+ expected: Option<SortProperties>,
+ expect_err: bool,
Review Comment:
It was like that before but due to some issues in CI and local difference. I
took a shortcut there but probably should not have done that. Let me properly
fix it. Thanks for the review
##########
datafusion/functions/src/math/monotonicity.rs:
##########
@@ -558,3 +558,441 @@ pub fn get_tanh_doc() -> &'static Documentation {
.build()
})
}
+
+#[cfg(test)]
+mod tests {
+ use arrow::compute::SortOptions;
+ use datafusion_common::Result;
+
+ use super::*;
+
+ #[derive(Debug)]
+ struct MonotonicityTestCase {
+ name: &'static str,
+ func: fn(&[ExprProperties]) -> Result<SortProperties>,
+ lower: f64,
+ upper: f64,
+ input_sort: SortProperties,
+ expected: Option<SortProperties>,
+ expect_err: bool,
Review Comment:
It was like that before but due to some issues in CI and local difference, I
took a shortcut there but probably should not have done that. Let me properly
fix it. Thanks for the review
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]