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

   ### Describe the bug
   
   `-2147483648 % -1` evaluates to 0 in scala, but fails in rust.
   
   scala:
   
   
![Image](https://github.com/user-attachments/assets/903d305b-7800-46be-81ce-a008c9ca89c5)
   
   rust:
   
   
![Image](https://github.com/user-attachments/assets/be2816dd-2779-4151-9348-966234ade115)
   
   ### Steps to reproduce
   
   reproduce with spark sql:
   
   ```
     test("Overflow happened on: -2147483648 % -1") {
       withTable("t1") {
         sql("create table t1(c1 int, c2 short) using parquet")
         sql("insert into t1 values(-2147483648, -1)")
         checkSparkAnswerAndOperator("select c1 % c2 from t1")
       }
     }
   ```
   
   ### Expected behavior
   
   _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: github-unsubscr...@datafusion.apache.org.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