jgoday commented on issue #496:
URL: 
https://github.com/apache/arrow-datafusion/issues/496#issuecomment-854118770


   Hi @alamb Can I try this ?
   Should be enough to check if the coerced args in the aggregation returns no 
result (in physical_plan/aggregates) ?
   ```rust
   let arg = coerce(args, input_schema, &signature(fun))?;
   if arg.len() == 0 {
       return Err(DataFusionError::Plan(format!(
           "Invalid aggregation '{}'",
           name,
       )));
   }
   ```


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to