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

Function generate_random_string

datafusion/core/tests/fuzz_cases/window_fuzz.rs:752–757  ·  view source on GitHub ↗
(rng: &mut StdRng, length: usize)

Source from the content-addressed store, hash-verified

750}
751
752fn generate_random_string(rng: &mut StdRng, length: usize) -> String {
753 rng.sample_iter(&Alphanumeric)
754 .take(length)
755 .map(char::from)
756 .collect()
757}
758
759/// Return randomly sized record batches with:
760/// three sorted int32 columns 'a', 'b', 'c' ranged from 0..DISTINCT as columns

Callers 1

make_staggered_batchesFunction · 0.70

Calls 3

collectMethod · 0.80
mapMethod · 0.45
takeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…