You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when run an aggregation function on a dataframe without input columns:
df = daft.from_pydict({"x": [1,2,3]})
df.count()
we get the following error message, which is not very helpful.
AssertionError: no columns were passed in
We should instead:
run the aggregation on all columns
give a better error that give an example
tell the user to look for df.count_rows() instead.
The text was updated successfully, but these errors were encountered:
samster25
changed the title
Improve Error message when calling aggregation method on dataframe without any columsn
Improve Error message when calling aggregation method on dataframe without any columns
Nov 8, 2023
…taframe without input columns (#1587)
Fixes#1583.
When a user does not specify columns in df aggregation methods, e.g.
`df.count()`:
- Default to running aggregation on all columns
- Log warning messages with an example to pass in columns.
Currently when run an aggregation function on a dataframe without input columns:
we get the following error message, which is not very helpful.
We should instead:
df.count_rows()
instead.The text was updated successfully, but these errors were encountered: