findepi commented on PR #14668: URL: https://github.com/apache/datafusion/pull/14668#issuecomment-2660287208
i now also have support for various numeric ```rust #[excalibur_function] fn add(a: i32, b: u32) -> i64 { a as i64 + b as i64 } ``` nullable function arguments ```rust #[excalibur_function] fn first_non_null(a: Option<i32>, b: Option<i32>) -> Option<i32> { a.or(b) } ``` nullable results ```rust #[excalibur_function] fn try_div(a: i32, b: i32) -> Option<i32> { if b == 0 { None } else { Some(a / b) } } ``` functions that can throw ```rust #[excalibur_function] fn maybe_fail(fail: bool) -> Result<bool> { if fail { exec_err!("This test function just failed") } else { Ok(true) } } ``` and string arguments ```rust #[excalibur_function] fn character_length(s: impl AsRef<str>) -> u64 { s.as_ref().chars().count() as u64 } ``` will update this PR soon -- 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