snowflake.snowpark.functions.divnull¶
- snowflake.snowpark.functions.divnull(dividend: Union[Column, str, int, float], divisor: Union[Column, str, int, float]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.47.0/src/snowflake/snowpark/functions.py#L2179-L2209)¶
Performs division like the division operator (/), but returns NULL when the divisor is 0 (rather then reporting error).
Example: