FL_GET_RELATIVE_PATH

functionsupportedData loading & unloading

docs.snowflake.com ↗

File functions

Returns the relative path of a FILE.

Syntax

Use one of the following

FL_GET_RELATIVE_PATH( <file_expression> )

FL_GET_RELATIVE_PATH( <variant_expression> )

Parameters

NameRequiredDescription
file_expressionrequiredThe argument must be an expression of type FILE.
variant_expressionrequiredThe argument must be an OBJECT representing a FILE.

Returns

The relative path of the file within its stage as a VARCHAR.