Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-37069: [C#] Allow for record batches larger than 2 GB #38593

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

voidstar69
Copy link
Contributor

@voidstar69 voidstar69 commented Nov 5, 2023

Rationale for this change

Allow for record batches larger than 2 GB.

What changes are included in this PR?

Make TotalLength a long instead of an int to allow for a larger record batch.

Are these changes tested?

Not yet, tests are WIP.

Potential issues:

  • Even with TotalLength allowed to be larger than 2GB, will underlying buffer(s) support data larger than 2GB?
  • How to test this? A test that generates a 2GB+ buffer to exercise this functionality, may be fairly slow.

Are there any user-facing changes?

No

Copy link

github-actions bot commented Nov 5, 2023

⚠️ GitHub issue #37069 has been automatically assigned in GitHub to PR creator.

@@ -204,7 +204,7 @@ private void CreateBuffers<T>(PrimitiveArray<T> array)

private Buffer CreateBuffer(ArrowBuffer buffer)
{
int offset = TotalLength;
int offset = checked((int)TotalLength);
Copy link
Contributor

Choose a reason for hiding this comment

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

Both "offset" and the properties in the Buffer class would also need to be changed to long.

@github-actions github-actions bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants