alamb commented on code in PR #9920:
URL: https://github.com/apache/arrow-datafusion/pull/9920#discussion_r1549677819


##########
datafusion/expr/src/function.rs:
##########
@@ -67,6 +88,24 @@ impl<'a> AccumulatorArgs<'a> {
             sort_exprs,
         }
     }
+
+    /// Return a not yet implemented error if IGNORE NULLs is true
+    pub fn check_ignore_nulls(&self, name: &str) -> Result<()> {
+        if self.ignore_nulls {

Review Comment:
   > Should we check `!self.ignore_nulls`?
   
   I don't think we can do this, because the ignore_nulls is true for the 
following queries
   
   ```sql
   SELECT avg(x) FROM ...;
   SELECT avg(x) RESPECT NULLS FROM ...;
   ```
   
   In other words, it is the default even when the user doesn't explicitly 
specify the handling
   
   
   
   
   



-- 
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]

Reply via email to