apache / apache/arrow-java

[Java] Add support for sliced arrays in C Data Interface

Open
#251 1 comment 0 reactions 0 assignees View on GitHub
Type: bug
Dominant language
Java
Stars
94
Forks
152
Avg merge
3d 16h
Merged PRs (30d)
11

Description

The Java implementation of the C Data Interface does not support non-0-offset arrays. This means that arrays like pyarrow.array([0, None, 2, 3, 4]).slice(1, 2) cannot be moved to a Java process. This is not even documented as required by the spec because it was an oversight.

 

**Reporter**: [Roee Shlomo](https://issues.apache.org/jira/browse/ARROW-14474) / @roee88
#### Related issues:
- [[Java] Java implementation of Arrow C data interface](https://github.com/apache/arrow/issues/28685) (is caused by)

**Note**: *This issue was originally created as [ARROW-14474](https://issues.apache.org/jira/browse/ARROW-14474). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*

Contributor guide

Open the contributing guide

Research direction

Start with the Java implementation of the C Data Interface and reproduce the sliced-array example using pyarrow.array([0, None, 2, 3, 4]).slice(1, 2). Done means non-0-offset arrays can be moved to a Java process, with coverage for this case and the related C Data Interface behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
data
Issue type
Bug
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.