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

   ### Describe the bug
   
   Given the following SQL, where `c1` is a `tinyint` and `c7` is a 
`decimal(14,6)`:
   
   ```sql
   SELECT c1, Avg(c7) FROM t1 GROUP BY c1 ORDER BY c1
   ```
   
   Some results are different between Spark and Comet, perhaps due to a decimal 
promotion or rounding difference.
   
   ```
   !== Correct Answer - 256 ==                 == Spark Answer - 256 ==
    struct<c1:tinyint,avg(c7):decimal(14,6)>   
struct<c1:tinyint,avg(c7):decimal(14,6)>
    [68,0.595938]                              [68,0.595938]
   ![69,0.520313]                              [69,0.520312]
    [70,0.498929]                              [70,0.498929]
   ```
   
   
   
   ### Steps to reproduce
   
   _No response_
   
   ### 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