Skip to content

Commit

Permalink
minor: update cargo.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuliquan committed Nov 9, 2024
1 parent 529662f commit 62f86a5
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 31 deletions.
53 changes: 27 additions & 26 deletions datafusion-cli/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions datafusion/physical-expr/benches/scalar_regex_match.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ fn make_record_batch(rows: usize, string_length: usize, schema: Schema) -> Recor
}

/// initialize benchmark data and pattern literals
#[allow(clippy::type_complexity)]
fn init_benchmark() -> (
Vec<(usize, RecordBatch)>,
Schema,
Expand All @@ -66,24 +67,24 @@ fn init_benchmark() -> (
// some pattern literal
let pattern_lit = vec![
(
format!("email"),
"email".to_string(),
lit(r"^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$"),
),
(
format!("url"),
"url".to_string(),
lit(r"^(https?|ftp)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]$"),
),
(
format!("ip"),
"ip".to_string(),
lit(
r"^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$",
),
),
(
format!("phone"),
"phone".to_string(),
lit(r"^(\+\d{1,2}\s?)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$"),
),
(format!("zip_code"), lit(r"^\d{5}(?:[-\s]\d{4})?$")),
("zip_code".to_string(), lit(r"^\d{5}(?:[-\s]\d{4})?$")),
];
(batch_data, schema, string_col, pattern_lit)
}
Expand Down

0 comments on commit 62f86a5

Please sign in to comment.