Jefffrey opened a new issue, #5558:
URL: https://github.com/apache/arrow-datafusion/issues/5558
**Describe the bug**
<!--
A clear and concise description of what the bug is.
-->
If calling `describe(...)` on a dataframe without a numeric type method then
it returns an error.
**To Reproduce**
<!--
Steps to reproduce the behavior:
-->
```rust
ctx.sql("select 'a' as a")
.await?
.describe()
.await?
.show()
.await?;
```
Causes error:
```
Error: Plan("Aggregate requires at least one grouping or aggregate
expression")
```
**Expected behavior**
<!--
A clear and concise description of what you expected to happen.
-->
Either be able to handle this properly or return a more informative error
**Additional context**
<!--
Add any other context about the problem here.
-->
Caused by filters for certain aggregations:
https://github.com/apache/arrow-datafusion/blob/ecbc843a1a8c38b2466748bc92a6e22ce08d51ed/datafusion/core/src/dataframe.rs#L371-L449
- See mean, std, median
Also worth testing for if the input dataframe has only boolean
boolean/binary column, like so:
```rust
ctx.sql("select true as a")
.await?
.describe()
.await?
.show()
.await?;
```
- See max & min in above code snippet
--
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]