Skip to content

Conversation

@gszadovszky
Copy link
Contributor

@gszadovszky gszadovszky commented Apr 22, 2025

What's Changed

Allow actually reaching MAX_BUFFER_SIZE at reallocating variable width vectors instead of exceeding it calculating the next power of 2.
For unit testing the maximum allocation size has be increased to 2MB - 1byte to simulate the default maximum behavior. Due to this change needed some updates in existing unit tests because of the round ups used at calculating the required buffer sizes.

Closes #721.

Allow actually reaching MAX_BUFFER_SIZE at reallocating variable width
vectors instead of exceeding it calculating the next power of 2.
@github-actions

This comment has been minimized.

@lidavidm lidavidm added the bug-fix PRs that fix a big. label Apr 22, 2025
@github-actions github-actions bot added this to the 18.3.0 milestone Apr 22, 2025
Copy link
Member

@lidavidm lidavidm left a comment

Choose a reason for hiding this comment

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

Is it possible to write a test for this?

@gszadovszky
Copy link
Contributor Author

Is it possible to write a test for this?

I think we already have tests related to reallocation. The contract of the related methods did not change related to this change. Do you think we still need to test that we are allocating between 1GB and 2GB?

BTW, do you know what the actual failure is about "Ensure PR format"?

@lidavidm
Copy link
Member

You can ignore that check for now.

I ask because previously allocating between 1 and 2 GB didn't work, so a regression test would be useful to provide.

@gszadovszky
Copy link
Contributor Author

@lidavidm added a unit test. Let's see if the decreasing of the default max allocation size by 1 byte would cause any harm in the other tests.

Copy link
Member

@lidavidm lidavidm left a comment

Choose a reason for hiding this comment

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

Thanks!

@lidavidm lidavidm merged commit 4af464c into apache:main Apr 22, 2025
25 of 27 checks passed
@gszadovszky
Copy link
Contributor Author

Thank you, @lidavidm!

dongjoon-hyun pushed a commit to apache/spark that referenced this pull request May 15, 2025
### What changes were proposed in this pull request?
This pr aims to upgrade `arrow-java` from 18.2.0 to 18.3.0.

### Why are the changes needed?
The new version bring some bug fixes, like:

- apache/arrow-java#627
- apache/arrow-java#654
- apache/arrow-java#656
- apache/arrow-java#693
- apache/arrow-java#705
- apache/arrow-java#707
- apache/arrow-java#722

In addition, the new version introduces a cascading upgrade for flatbuffers-java([ from 24.3.25 to 25.1.24 ](apache/arrow-java#600))

the full release note as follows:
- https://github.com/apache/arrow-java/releases/tag/v18.3.0

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
- Pass GitHub Acitons

### Was this patch authored or co-authored using generative AI tooling?
No

Closes #50892 from LuciferYang/arrow-java-18.3.0.

Authored-by: yangjie01 <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
yhuang-db pushed a commit to yhuang-db/spark that referenced this pull request Jun 9, 2025
### What changes were proposed in this pull request?
This pr aims to upgrade `arrow-java` from 18.2.0 to 18.3.0.

### Why are the changes needed?
The new version bring some bug fixes, like:

- apache/arrow-java#627
- apache/arrow-java#654
- apache/arrow-java#656
- apache/arrow-java#693
- apache/arrow-java#705
- apache/arrow-java#707
- apache/arrow-java#722

In addition, the new version introduces a cascading upgrade for flatbuffers-java([ from 24.3.25 to 25.1.24 ](apache/arrow-java#600))

the full release note as follows:
- https://github.com/apache/arrow-java/releases/tag/v18.3.0

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
- Pass GitHub Acitons

### Was this patch authored or co-authored using generative AI tooling?
No

Closes apache#50892 from LuciferYang/arrow-java-18.3.0.

Authored-by: yangjie01 <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
timhurskidremio added a commit to timhurskidremio/dremio-arrow that referenced this pull request Nov 3, 2025
timhurskidremio added a commit to timhurskidremio/dremio-arrow that referenced this pull request Nov 3, 2025
timhurskidremio added a commit to timhurskidremio/dremio-arrow that referenced this pull request Nov 3, 2025
timhurskidremio added a commit to timhurskidremio/dremio-arrow that referenced this pull request Nov 3, 2025
timhurskidremio added a commit to timhurskidremio/dremio-arrow that referenced this pull request Nov 3, 2025
timhurskidremio added a commit to timhurskidremio/dremio-arrow that referenced this pull request Nov 10, 2025
timhurskidremio added a commit to timhurskidremio/dremio-arrow that referenced this pull request Nov 10, 2025
timhurskidremio added a commit to dremio/arrow that referenced this pull request Nov 10, 2025
timhurskidremio added a commit to dremio/arrow that referenced this pull request Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fix PRs that fix a big.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow using 1GB+ data buffers in variable width vectors

2 participants