MCPcopy Create free account
hub / github.com/apache/datafusion / make_long_strings

Function make_long_strings

datafusion/common/src/scalar/mod.rs:10800–10806  ·  view source on GitHub ↗

Builds a `StringViewArray` with `n` strings that are all longer than 12 bytes so they are stored in backing buffers rather than inline.

(n: usize)

Source from the content-addressed store, hash-verified

10798 /// Builds a `StringViewArray` with `n` strings that are all longer than
10799 /// 12 bytes so they are stored in backing buffers rather than inline.
10800 fn make_long_strings(n: usize) -> StringViewArray {
10801 let mut b = StringViewBuilder::new();
10802 for i in 0..n {
10803 b.append_value(format!("long_string_value_pad_{i:04}"));
10804 }
10805 b.finish()
10806 }
10807
10808 /// Total bytes across all backing buffers of a `StringViewArray`.
10809 fn utf8view_buffer_bytes(a: &StringViewArray) -> usize {

Calls 3

newFunction · 0.85
append_valueMethod · 0.45
finishMethod · 0.45

Used in the wild real call sites across dependent graphs

searching dependent graphs…