mars-project / mars-project/mars

Support join_by of structured arrays (recarray)

Open
#517 1 comment 0 reactions 0 assignees View on GitHub
mod: tensor type: feature
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.