mars-project / mars-project/mars
Support join_by of structured arrays (recarray)
- Dominant language
- Python
- Stars
- 2.7k
- Forks
- 325
- PR merge metrics
- No merged PRs in 30d
Description
**Is your feature request related to a problem? Please describe.**
We have already supported structured arrays (`numpy.recarray`). It would be great if we can support some advanced method of structured arrays, for example `join_by`.
**Describe the solution you'd like**
Implement [`join_by`](https://www.numpy.org/devdocs/user/basics.rec.html#numpy.lib.recfunctions.join_by).
**Describe alternatives you've considered**
Otherwise, we need a `for-loop` to finish some requirements like `join`.
**Additional context**
Add any other context or screenshots about the feature request here.
Contributor guide
Research direction
The issue points to NumPy's recfunctions.join_by API and Mars's existing structured-array support. Start by locating that support and its tests, then compare the expected behavior with NumPy's documentation. Done means join_by works for structured arrays without the proposed for-loop workaround and is covered by relevant tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- numpy, python
- Domain
- data
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100