Skip to content

GroupBy on strings fails with unkown symbol error #432

Closed

Description

@reuster986

There is a python-side bug that is causing GroupBy on strings to return an uknown symbol error. I believe the bug is in this block:

https://github.com/mhmerrill/arkouda/blob/b75031c3c2e219d550588dd6fe9bb76fbaef1623/arkouda/groupbyclass.py#L104-L125

I think what is happening is h1 and h1 are being garbage collected by python before the generic_msg call, so the arkouda server deletes the arrays before they are used in findSegments. A possible fix would be to add h1 and h2 directly to the keynames array instead of just their string names. That might tell python to keep the objects in scope.

For now, there is a workaround: use ak.GroupBy(..., hash_strings=False). That keyword arg bypasses h1 and h2.

Activity

  1. self-assigned this
    on Jul 17, 2020
  2. added
    bug
    on Jul 17, 2020
  3. removed their assignment
    on Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions