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

Function parse_query_file_name

benchmarks/src/benchmark_runner/suite.rs:398–406  ·  view source on GitHub ↗
(file_name: &str)

Source from the content-addressed store, hash-verified

396}
397
398fn parse_query_file_name(file_name: &str) -> Option<usize> {
399 let query_id = file_name.strip_prefix('q')?.strip_suffix(".benchmark")?;
400
401 if query_id.len() < 2 || !query_id.chars().all(|c| c.is_ascii_digit()) {
402 return None;
403 }
404
405 query_id.parse().ok()
406}
407
408fn is_valid_cli_option_name(name: &str) -> bool {
409 name.chars()

Callers 1

scan_query_dirMethod · 0.85

Calls 4

strip_prefixMethod · 0.80
allMethod · 0.80
lenMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…