You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "comphead (via GitHub)" <gi...@apache.org> on 2026/06/10 19:45:43 UTC
Re: [I] [Bug] array_max and array_min disagree with Spark on NaN ordering [datafusion-comet]
comphead commented on issue #4482:
URL: https://github.com/apache/datafusion-comet/issues/4482#issuecomment-4673833615
```
DataFusion CLI v54.0.0
> SELECT array_min(make_array(CAST('NaN' AS DOUBLE), 1.0, 2.0));
+----------------------------------------------------------+
| array_min(make_array(Utf8("NaN"),Float64(1),Float64(2))) |
+----------------------------------------------------------+
| 1.0 |
+----------------------------------------------------------+
1 row(s) fetched.
Elapsed 0.017 seconds.
> SELECT array_max(make_array(CAST('NaN' AS DOUBLE), 1.0, 2.0));
+----------------------------------------------------------+
| array_max(make_array(Utf8("NaN"),Float64(1),Float64(2))) |
+----------------------------------------------------------+
| NaN |
+----------------------------------------------------------+
1 row(s) fetched.
Elapsed 0.004 seconds.
```
--
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-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org