snowflake.snowpark.functions.fl_is_video¶
- snowflake.snowpark.functions.fl_is_video(e: Union[Column, str]) Column [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.30.0/snowpark-python/src/snowflake/snowpark/functions.py#L11899-L11919)¶
Checks if the input is a video 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_video(to_file("@mystage/testCSV.csv")).alias("file")) >>> df.collect()[0][0] False This function or method is in private preview since 1.29.0.