qazxcdswe123 commented on code in PR #15014:
URL: https://github.com/apache/datafusion/pull/15014#discussion_r1986032404
##########
datafusion/sql/src/expr/function.rs:
##########
@@ -349,6 +349,12 @@ impl<S: ContextProvider> SqlToRel<'_, S> {
} else {
// User defined aggregate functions (UDAF) have precedence in case
it has the same name as a scalar built-in function
if let Some(fm) = self.context_provider.get_aggregate_meta(&name) {
+ // Reject RESPECT NULLS and IGNORE NULLS for aggregate
functions
+ // See https://github.com/apache/datafusion/issues/15006
+ if null_treatment.is_some() {
Review Comment:
Yes I totally agree! Does this mean I should make change in
https://github.com/apache/datafusion-sqlparser-rs ?
--
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]