Garamda commented on code in PR #13511: URL: https://github.com/apache/datafusion/pull/13511#discussion_r1976293270
########## datafusion/expr/src/udaf.rs: ########## @@ -845,6 +861,19 @@ pub trait AggregateUDFImpl: Debug + Send + Sync { ScalarValue::try_from(data_type) } + /// If this function supports `[IGNORE NULLS | RESPECT NULLS]` clause, return true + /// If the function does not, return false + /// Otherwise return None (the default) + fn supports_null_handling_clause(&self) -> Option<bool> { + None + } Review Comment: There are [some aggregate functions using null handling](https://github.com/apache/datafusion/blob/main/datafusion/sqllogictest/test_files/aggregate.slt#L5866-L5874) in current datafusion. (cf. If this is something we need to discuss/fix, then I can make another git issue. Or, I can choose better option if there is. I left this comment because I am not 100% sure about the SQL standard.) And I refactored the function to just return `bool`. -- 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