PARSE_URL

functionsupportedCore SQL functions

docs.snowflake.com ↗

String & binary functions

Returns an OBJECT value that consists of all the components (fragment, host, parameters, path, port, query, scheme) in a valid input URL/URI.

Syntax

supportedpartialnot supportednot scored

PARSE_URL(<string>, [<permissive>])

Parameters

NameRequiredDescription
stringrequiredString to parse.
permissiveoptionalFlag that determines how parse errors are handled: If set to 0, parse errors cause the function to fail. If set to 1, parse errors result in an object with the error field set to the respective error message (and no other fields set). Default value is 0.

Returns

The function returns a value of type OBJECT. If any input argument is NULL, the function returns NULL. When an OBJECT value is returned, it contains the following key-value pairs: