Skip to content

Commit

Permalink
fixed regex to get param with filters
Browse files Browse the repository at this point in the history
  • Loading branch information
Schwarzam committed Sep 15, 2024
1 parent 44b7a56 commit c2f5e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loaders/parquet/parse_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub fn parse_filters(params: &HashMap<String, String>) -> Option<Vec<(&str, &str
return None
}

let re = Regex::new(r"([a-zA-Z_]+)([!<>=]+)([-+]?[0-9]*\.?[0-9]*)").unwrap();
let re = Regex::new(r"([1-9a-zA-Z_]+)([!<>=]+)([-+]?[0-9]*\.?[0-9]*)").unwrap();
let mut filter_vec = Vec::new();
for filter in filters {
let f_vec = re.captures(filter).unwrap();
Expand Down

0 comments on commit c2f5e00

Please sign in to comment.