Skip to main content

spark_mod

Function spark_mod 

Source
pub fn spark_mod(
    args: &[ColumnarValue],
    enable_ansi_mode: bool,
) -> Result<ColumnarValue>
Expand description

Spark-compatible mod function In ANSI mode, division by zero throws an error. In legacy mode, division by zero returns NULL (Spark behavior).