snowflake.snowpark.functions.to_file¶
- snowflake.snowpark.functions.to_file(stage_file_uri: Union[Column, None, bool, int, float, str, bytearray, Decimal, date, datetime, time, bytes, NaTType, float64, list, tuple, dict]) 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: