snowflake.snowpark.functions.to_file¶
- snowflake.snowpark.functions.to_file(stage_file_uri: str) Column[source]¶
Converts a stage file URI to a FILE value or NULL (if input is NULL), with the metadata related to the file.
- Parameters:
stage_file_uri – The stage file URI to convert to a FILE value, e.g.,
@mystage/myfile.txt. It has to be a constant instead of a column expression.
Example: