You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SQL "order by" query returns wrong order for +0.0 and -0.0 #3825
test("negative zero order by") {
withTable("t1") {
Seq(0.0f, -0.0f).toDF("a").write.saveAsTable("t1")
valdf= sql("SELECT * FROM t1 ORDER BY a")
checkSparkAnswerAndOperator(df)
}
}
Activity
andygrove commentedon Mar 28, 2026
This is documented in the compatibility guide already, and there is a config that can be enabled to fallback to Spark for this case.
https://datafusion.apache.org/comet/user-guide/latest/compatibility.html#floating-point-number-comparison
kazuyukitanimura commentedon Mar 30, 2026
The main issue is that many tests sort results and fails due to this incompatibility issue, so we have to treat the tests differently.
May not be a problem for end users, but for development purpose, we should fix this.