Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when unique! a empty dataframe #3392

Closed
1991jhf opened this issue Oct 20, 2023 · 1 comment · Fixed by #3393
Closed

error when unique! a empty dataframe #3392

1991jhf opened this issue Oct 20, 2023 · 1 comment · Fixed by #3393

Comments

@1991jhf
Copy link

1991jhf commented Oct 20, 2023

I get inexact error trunc(Int64,Inf) when unique! an empty dataframes.

It track down to

function row_group_slots!(
...
# if there are few rows per group limit the number of threads used
nt = clamp(round(Int, (lg / 4) / ngroups - 2), 1, nt)
...

when ngroups=0.
However i cannot reproduce this in a minimal example.
Is it possible to short-circuit the unique! when the dataframe is empty?

Thank you

@bkamins
Copy link
Member

bkamins commented Oct 20, 2023

fixed in #3393

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants