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