parse_url

Aliases: parseurl (deprecated).

parse_url(arg: string) -> object

Parses arg as an absolute URL and returns an object whose fields mirror the Snowflake PARSE_URL result, with percent-decoding applied to most nested keys and string values while leaving the top-level query field in its original percent-encoded form for downstream parsing.

Unparsable URLs or a null input yield null. For IP literals embedded in URLs, you may combine this with parse_ip on extracted host strings.

Domain

This is a scalar function (calculates a single output value for a single input row).

Categories

Examples

make_col parts:parse_url(request_url)

Breaks an HTTP URL string into structured fields such as host, path, and query.