Description
For the following query
SET spark.sql.ansi.enabled=true;
SELECT try_cast(1/0 AS string);
Spark 3.3 will throw an exception for the division by zero error. In current master branch, it returns null after the refactoring PR https://github.com/apache/spark/pull/36703