This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
The following commit(s) were added to refs/heads/main by this push:
new b397fa2288 Minor: Enable byte view for clickbench benchmark (#7565)
b397fa2288 is described below
commit b397fa2288364bd5a67b29821f67b8c197bfe720
Author: Qi Zhu <[email protected]>
AuthorDate: Sun Jun 1 03:04:11 2025 +0800
Minor: Enable byte view for clickbench benchmark (#7565)
* minor: support BinaryView for clickbench benchmark
* minor: support BinaryView for clickbench benchmark
---
parquet/benches/arrow_reader_clickbench.rs | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/parquet/benches/arrow_reader_clickbench.rs
b/parquet/benches/arrow_reader_clickbench.rs
index 69f3e4c1a9..38d5ed9bb8 100644
--- a/parquet/benches/arrow_reader_clickbench.rs
+++ b/parquet/benches/arrow_reader_clickbench.rs
@@ -863,7 +863,10 @@ fn load_metadata(path: &Path) -> ArrowReaderMetadata {
//
// The clickbench_partitioned dataset has textual fields listed as
// binary for some historical reason so translate Binary to
Utf8View
- if matches!(f.data_type(), DataType::Utf8 | DataType::Binary) {
+ if matches!(
+ f.data_type(),
+ DataType::Utf8 | DataType::Binary | DataType::BinaryView
+ ) {
let new_field =
f.as_ref().clone().with_data_type(DataType::Utf8View);
Arc::new(new_field)
} else {