MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / regexp_split_to_array

Function regexp_split_to_array

src/expr/src/scalar/func/variadic.rs:1254–1263  ·  view source on GitHub ↗
(
    text: &str,
    regexp_str: &str,
    flags: OptionalArg<&str>,
    temp_storage: &'a RowArena,
)

Source from the content-addressed store, hash-verified

1252 introduces_nulls = false
1253)]
1254fn regexp_split_to_array<'a>(
1255 text: &str,
1256 regexp_str: &str,
1257 flags: OptionalArg<&str>,
1258 temp_storage: &'a RowArena,
1259) -> Result<Datum<'a>, EvalError> {
1260 let flags = flags.unwrap_or("");
1261 let regexp = build_regex(regexp_str, flags)?;
1262 regexp_split_to_array_re(text, &regexp, temp_storage)
1263}
1264
1265#[sqlfunc]
1266fn regexp_replace<'a>(

Callers 1

regexp_split_to_array_reFunction · 0.50

Calls 2

regexp_split_to_array_reFunction · 0.85
build_regexFunction · 0.50

Tested by

no test coverage detected