Skip to content

Conversation

@zhuqi-lucas
Copy link
Contributor

Which issue does this PR close?

Fix the bug that view types slice benchmark not using the right len after we added new benchmark.

Rationale for this change

Fix the bug that view types slice benchmark not using the right len after we added new benchmark.

What changes are included in this PR?

Fix the bug that view types slice benchmark not using the right len after we added new benchmark.

Are these changes tested?

Yes

Are there any user-facing changes?

No

@github-actions github-actions bot added the arrow Changes to the arrow crate label Jul 10, 2025
@alamb alamb changed the title fix: view types slice should follow by correct len array fix: view_types benchmark slice should follow by correct len array Jul 10, 2025
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you @zhuqi-lucas -- I verified that on main running

cargo bench --bench view_types

Panics with this error

Benchmarking view types slice: Warming up for 3.0000 s
thread 'main' panicked at arrow-buffer/src/buffer/immutable.rs:297:9:
the offset of the new Buffer cannot exceed the existing length: slice offset=0 length=800000 selflen=128000
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

error: bench failed, to rerun pass `-p arrow-array --bench view_types`

And it does not panic with this RP

@alamb alamb merged commit 7595417 into apache:main Jul 10, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow Changes to the arrow crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants