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

Function spark_parse_url

datafusion/spark/src/function/url/parse_url.rs:216–218  ·  view source on GitHub ↗

Core implementation of URL parsing function. # Arguments `args` - A slice of ArrayRef containing the input arrays: - `args[0]` - URL array: The URLs to parse - `args[1]` - Part array: The URL components to extract (HOST, PATH, QUERY, etc.) - `args[2]` - Key array (optional): For QUERY part, the specific parameter names to extract # Return Value Returns `Result ` containing: - A string

(args: &[ArrayRef])

Source from the content-addressed store, hash-verified

214/// - `None` values where extraction failed or component doesn't exist
215/// - The output array type (StringArray or LargeStringArray) is determined by input types
216fn spark_parse_url(args: &[ArrayRef]) -> Result<ArrayRef> {
217 spark_handled_parse_url(args, |x| x)
218}
219
220pub fn spark_handled_parse_url(
221 args: &[ArrayRef],

Callers

nothing calls this directly

Calls 1

spark_handled_parse_urlFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…