Skip to content

Commit

Permalink
add dtype-struct feature gate in polars-plan
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdlineluser committed Jul 31, 2023
1 parent fc8346c commit 0a93f3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/polars-plan/src/dsl/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ impl StringNameSpace {
.map_private(StringFunction::Extract { pat, group_index }.into())
}

#[cfg(feature = "dtype-struct")]
// Extract all captures groups from a regex pattern as a struct
pub fn extract_groups(self, pat: &str) -> Expr {
let pat = pat.to_string();
Expand Down

0 comments on commit 0a93f3f

Please sign in to comment.