Skip to content

Commit 5690712

Browse files
authored
Increase ByteViewMap block size to 2MB (#11674)
* better default block size * fix related test
1 parent 281fbed commit 5690712

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datafusion/physical-expr-common/src/binary_view_map.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ where
149149
output_type,
150150
map: hashbrown::raw::RawTable::with_capacity(INITIAL_MAP_CAPACITY),
151151
map_size: 0,
152-
builder: GenericByteViewBuilder::new(),
152+
builder: GenericByteViewBuilder::new().with_block_size(2 * 1024 * 1024),
153153
random_state: RandomState::new(),
154154
hashes_buffer: vec![],
155155
null: None,
@@ -545,7 +545,7 @@ mod tests {
545545
// Much larger strings in strings2
546546
let strings2 = StringViewArray::from(vec![
547547
"FOO".repeat(1000),
548-
"BAR larger than 12 bytes.".repeat(1000),
548+
"BAR larger than 12 bytes.".repeat(100_000),
549549
"more unique.".repeat(1000),
550550
"more unique2.".repeat(1000),
551551
"FOO".repeat(3000),

0 commit comments

Comments
 (0)