You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/06/03 19:24:15 UTC

[GitHub] [arrow-datafusion] jgoday commented on issue #496: panic! 'index out of bounds: the len is 0 but the index is 0 with bad sql query

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:
users@infra.apache.org