buraksenn commented on code in PR #14307: URL: https://github.com/apache/datafusion/pull/14307#discussion_r1931292619
########## 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: Oh, I got it now. I needed to `strip_backtrace()` before comparing errors now I think I've fixed it -- 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