Skip to content

GH-41584: [Java] ListView Implementation for C Data Interface - #43686

Merged
lidavidm merged 4 commits into
apache:mainfrom
vibhatha:gh-41584
Aug 24, 2024
Merged

lidavidm merged 4 commits into
apache:mainfrom
vibhatha:gh-41584

Conversation

@vibhatha

@vibhatha vibhatha commented Aug 14, 2024 •

Copy link
Copy Markdown
Contributor

Rationale for this change

C Data Interface is missing ListView and LargeListView after recently merging core functionalities.

Also closes;

What changes are included in this PR?

This PR includes C Data interface related component additions to ListView and LargeListView along with the corresponding test cases.

Are these changes tested?

Yes

Are there any user-facing changes?

No

@vibhatha
vibhatha marked this pull request as ready for review August 14, 2024 11:15
@vibhatha
vibhatha marked this pull request as draft August 14, 2024 12:07
@assignUser
assignUser removed their request for review August 17, 2024 02:44
}

return maxOffsetSizeSum - minOffset;
return maxOffsetSizeSum;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lidavidm what I have done in the first implementation is incorrect, I think the test case I had didn't tackle this case, but the C data interface tests caught it. Sorry about that.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This need a little bit of work... I am improving it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated.

@github-actions github-actions Bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Aug 21, 2024
@vibhatha
vibhatha marked this pull request as ready for review August 21, 2024 13:59
@vibhatha
vibhatha marked this pull request as draft August 21, 2024 14:21
Comment thread java/c/src/test/python/integration_tests.py Outdated

protected int getLengthOfChildVector() {
/**
* Get the maximum view length of child vector This method deduces the length by considering the

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this is the "view length" (length of an individual view) but more like just the end of the child vector in general?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, the function name is correct but the docs are not precise. I will update.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated the docs, does it look okay?

protected int getLengthOfChildVector() {
/**
* Get the maximum view length of child vector This method deduces the length by considering the
* condition i.e., 0 <= offsets[i] + size[i] <= length of the child array.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And the condition is more like argmax_i offsets[i] + size[i]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated this as well.

@github-actions github-actions Bot added awaiting changes Awaiting changes and removed awaiting committer review Awaiting committer review labels Aug 23, 2024
@vibhatha
vibhatha marked this pull request as ready for review August 23, 2024 14:14
@github-actions github-actions Bot added awaiting change review Awaiting change review and removed awaiting changes Awaiting changes labels Aug 23, 2024
@vibhatha
vibhatha requested a review from lidavidm August 23, 2024 14:52
@lidavidm
lidavidm merged commit e61c105 into apache:main Aug 24, 2024
@lidavidm lidavidm removed the awaiting change review Awaiting change review label Aug 24, 2024
@github-actions github-actions Bot added the awaiting merge Awaiting merge label Aug 24, 2024
@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit e61c105.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 1 possible false positive for unstable benchmarks that are known to sometimes produce them.

pribor pushed a commit to GlobalWebIndex/arrow that referenced this pull request Oct 24, 2025
…pache#43686)

### Rationale for this change

C Data Interface is missing `ListView` and `LargeListView` after recently merging core functionalities.

Also closes;

- [x] apache#41585

### What changes are included in this PR?

This PR includes C Data interface related component additions to `ListView` and `LargeListView` along with the corresponding test cases. 

### Are these changes tested?

Yes

### Are there any user-facing changes?

No
* GitHub Issue: apache#41584

Authored-by: Vibhatha Abeykoon <vibhatha@gmail.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants