In Spark SQL, by default, Spark throws an arithmetic exception at runtime for both interval and numeric type overflows. If spark.sql.ansi.enabled is false, then the decimal type will produce null ...