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

Function normalize_vec_for_explain

datafusion/core/tests/sql/mod.rs:286–295  ·  view source on GitHub ↗

Applies normalize_for_explain to every line

(v: Vec<Vec<String>>)

Source from the content-addressed store, hash-verified

284
285/// Applies normalize_for_explain to every line
286fn normalize_vec_for_explain(v: Vec<Vec<String>>) -> Vec<Vec<String>> {
287 let normalizer = ExplainNormalizer::new();
288 v.into_iter()
289 .map(|l| {
290 l.into_iter()
291 .map(|s| normalizer.normalize(s))
292 .collect::<Vec<_>>()
293 })
294 .collect::<Vec<_>>()
295}
296
297#[tokio::test]
298async fn nyc() -> Result<()> {

Callers 2

Calls 4

newFunction · 0.85
mapMethod · 0.45
into_iterMethod · 0.45
normalizeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…