snowflake.snowpark.functions.fl_is_image¶

snowflake.snowpark.functions.fl_is_image(e: Union[Column, str]) → Column[source]¶

Checks if the input is an image 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_image(to_file("@mystage/testCSV.csv")).alias("file"))
>>> df.collect()[0][0]
False
Copy