rishvin commented on PR #1971:
URL: 
https://github.com/apache/datafusion-comet/pull/1971#issuecomment-3025913814

   Note that there is a problem in vanilla spark message, it says - `Use 
try_divide()`, however, it should have said -  `Use try_mod()`. I checked this 
message in spark-4 also, the message even today says `Use try_divide()`. This 
is spark specific message problem, however, I just wanted to flag this out. 
Here is the sample from spark-4,
   ```
   scala> spark.sql("SELECT mod(10, 0)").show()
        |
   org.apache.spark.SparkArithmeticException: [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
   == SQL (line 1, position 8) ==
   SELECT mod(10, 0)
   ``` 


-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to