wForget opened a new issue, #2448:
URL: https://github.com/apache/datafusion-comet/issues/2448
### Describe the bug
test case:
```
test("SUM, MIN, MAX, AVG for NaN, -0.0 and 0.0") {
// NaN should be grouped together, and -0.0 and 0.0 should also be
grouped together
Seq(true, false).foreach { dictionaryEnabled =>
val data: Seq[(Float, Int)] = Seq(
(Float.NaN, 1),
(-0.0.asInstanceOf[Float], 2),
(0.0.asInstanceOf[Float], 3),
(Float.NaN, 4))
withSQLConf(CometConf.COMET_EXEC_SHUFFLE_ENABLED.key -> "true") {
withParquetTable(data, "tbl", dictionaryEnabled) {
checkSparkAnswer("SELECT SUM(_2), MIN(_2), MAX(_2), _1 FROM tbl
GROUP BY _1")
checkSparkAnswer("SELECT MIN(_1), MAX(_1), MIN(_2), MAX(_2) FROM
tbl")
checkSparkAnswer("SELECT AVG(_2), _1 FROM tbl GROUP BY _1")
checkSparkAnswer("SELECT AVG(_1), AVG(_2) FROM tbl")
}
}
}
}
```
error:
```
== Results ==
!== Correct Answer - 1 == == Spark
Answer - 1 ==
struct<min(_1):float,max(_1):float,min(_2):int,max(_2):int>
struct<min(_1):float,max(_1):float,min(_2):int,max(_2):int>
![0.0,NaN,1,4] [-0.0,NaN,1,4]
```
### 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: [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]