ueshin commented on PR #45377: URL: https://github.com/apache/spark/pull/45377#issuecomment-2041273571
I'm afraid I still see a weird behavior: ```py >>> spark.conf.set("spark.sql.ansi.enabled", True) >>> df = spark.range(10) >>> a = df.id / 10 >>> b = df.id / 0 >>> >>> df.select( ... a, ... df.id + 4, ... b, ... df.id * 5 ... ).show() pyspark.errors.exceptions.captured.ArithmeticException: [DIVIDE_BY_ZERO] Division by zero. Use `try_divide` to tolerate divisor being 0 and return NULL instead. If necessary set "spark.sql.ansi.enabled" to "false" to bypass this error. SQLSTATE: 22012 == DataFrame == "plus" was called from <stdin>:3 ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org