rishvin opened a new issue, #2855:
URL: https://github.com/apache/datafusion-comet/issues/2855

   ### What is the problem the feature request solves?
   
   PR https://github.com/apache/datafusion-comet/pull/1971 introduce 
spark_modulo function, and found that Spark 4.0 and earlier version threw 
`Divide by Zero` instead of `Remainder by Zero` exception, which was incorrect. 
And so, filed https://issues.apache.org/jira/browse/SPARK-52659 for Spark to 
fix this. 
   
   That error message has now been fixed in the PR 
https://github.com/apache/spark/pull/51378 for Spark 4.1 and it  will now throw 
`Reminder by Zero` instead of misleading `Divide by Zero`. This would require 
conditionally handling errors 
[here](https://github.com/apache/datafusion-comet/blob/fd0ab6441b078a8875b614ca2d615a102c592606/native/spark-expr/src/math_funcs/modulo_expr.rs#L58)
 depending on whether the spark version is 4.1 or earlier.
   
   ### Describe the potential solution
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to