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

[BUG] Error when doing a collect aggregation on an empty Series #7728

Closed
shwina opened this issue Mar 25, 2021 · 3 comments
Closed

[BUG] Error when doing a collect aggregation on an empty Series #7728

shwina opened this issue Mar 25, 2021 · 3 comments
Assignees
Labels
bug Something isn't working libcudf Affects libcudf (C++/CUDA) code.

Comments

@shwina
Copy link
Contributor

shwina commented Mar 25, 2021

In [1]: import cudf

In [2]: df = cudf.DataFrame({'a': [], 'b': []})

In [3]: df.groupby('a').agg(list) # equivalently, agg("collect")
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-3-0f69423f9563> in <module>
----> 1 df.groupby('a').agg(list)

~/NVTX/python/nvtx/nvtx.py in inner(*args, **kwargs)
     99         def inner(*args, **kwargs):
    100             libnvtx_push_range(self.attributes, self.domain.handle)
--> 101             result = func(*args, **kwargs)
    102             libnvtx_pop_range(self.domain.handle)
    103             return result

~/cudf/python/cudf/cudf/core/groupby/groupby.py in agg(self, func)
    169         # a Float64Index, while Pandas returns an Int64Index
    170         # (GH: 6945)
--> 171         result = self._groupby.aggregate(self.obj, normalized_aggs)
    172
    173         result = cudf.DataFrame._from_table(result)

~/cudf/python/cudf/cudf/_lib/groupby.pyx in cudf._lib.groupby.GroupBy.aggregate()
    153             c_result = move(
    154                 self.c_obj.get()[0].aggregate(
--> 155                     c_agg_requests
    156                 )
    157             )

RuntimeError: cuDF failure at: ../../../../src/column/column_factories.cpp:68: make_empty_column is invalid to call on nested types
@shwina shwina added bug Something isn't working Needs Triage Need team to review and classify labels Mar 25, 2021
@kkraus14 kkraus14 added libcudf Affects libcudf (C++/CUDA) code. and removed Needs Triage Need team to review and classify labels Mar 25, 2021
@kkraus14
Copy link
Collaborator

@ttnghia since you implemented collect_set / collect, any chance you could take a look at this?

@ttnghia
Copy link
Contributor

ttnghia commented Mar 25, 2021

Hi! This is a current bug in collect aggregate. An issue for it has been filed here: #7611

@kkraus14
Copy link
Collaborator

Closing as duplicated of #7611

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working libcudf Affects libcudf (C++/CUDA) code.
Projects
None yet
Development

No branches or pull requests

3 participants