snowflake.snowpark.functions.fl_is_document¶
- snowflake.snowpark.functions.fl_is_document(e: Union[Column, str]) Column [source]¶
Checks if the input is a document FILE.
Example:
>>> import json >>> # Create a temp stage. >>> _ = session.sql("create or replace temp stage mystage").collect() >>> # Upload a file to a stage. >>> r = session.file.put("tests/resources/testCSV.csv", "@mystage", auto_compress=False, overwrite=True) >>> df = session.range(1).select(fl_is_document(to_file("@mystage/testCSV.csv")).alias("file")) >>> df.collect()[0][0] False