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

Fix ram estimate and its test for PackedInts.NullReader singleton #13250

Merged

Conversation

original-brownbear
Copy link
Contributor

Correct estimate for singleton to return 0 and use custom accumulator in tests to fix assertions. Tried not doing this in #13232 but turns out we need a little complexity here since the singleton is recognized by the RamUsageTester in so far that is only counted once if it shows up repeatedly in an array or so.

fixes #13249

Correct estimate for singleton to return `0` and use custom accumulator in tests to
fix assertions. Tried not doing this in apache#13232 but turns out we need a little complexity here
since the singleton is recognized by the `RamUsageTester` in so far that is only counted
once if it shows up repeatedly in an array or so.

fixes apache#13249
@benwtrent benwtrent merged commit 42f2da5 into apache:main Apr 1, 2024
3 checks passed
benwtrent pushed a commit that referenced this pull request Apr 1, 2024
…3250)

Correct estimate for singleton to return `0` and use custom accumulator in tests to
fix assertions. Tried not doing this in #13232 but turns out we need a little complexity here
since the singleton is recognized by the `RamUsageTester` in so far that is only counted
once if it shows up repeatedly in an array or so.

fixes #13249
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TestPackedInts.testPackedLongValues failing
2 participants