TrevorADHD opened a new pull request, #8381:
URL: https://github.com/apache/arrow-rs/pull/8381
# Which issue does this PR close?
- Closes #8380
# Rationale for this change
It will fix the example to help user get the result of utf8view performance.
# What changes are included in this PR?
Reset the file handle's offset before using it in next time.
# Are these changes tested?
```
arrow-avro/examples/read_with_utf8view.rs
```
The example can run successfully
```shell
(base) ➜ arrow-avro git:(fix/example_of_utf8view) cargo run --package
arrow-avro --example read_with_utf8view -- test/data/nested_record_reuse.avro
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.30s
Running
`/Users/trevor.wang/Workspace/rust/fix-arrow-rs/arrow-rs/target/debug/examples/read_with_utf8view
test/data/nested_record_reuse.avro`
Read 2 rows from test/data/nested_record_reuse.avro
Reading with StringArray: 2.095417ms
Reading with StringViewArray: 179.333µs
StringViewArray was 11.68x faster
```
# Are there any user-facing changes?
Every user will get the right result and run the example to get the
perfomrance data.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]