You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "nchammas (via GitHub)" <gi...@apache.org> on 2026/05/19 13:46:23 UTC
Re: [PR] [SPARK-54918][SQL] Normalize -0.0 to 0.0 in array operations [spark]
nchammas commented on PR #53695:
URL: https://github.com/apache/spark/pull/53695#issuecomment-4488384136
This is an interesting proposal and is directly related to the work I did in https://github.com/apache/spark/pull/45036. Please take a look.
There are special cases where values can be equal and distinct (-0.0/0.0), or unequal but not distinct (NaN/NaN).
I agree that Spark should handle -0.0 consistently. However, I would consider it a safer change to ensure that -0.0 is always preserved, rather than always normalizing it to 0.0. This does not contradict IEEE 754.
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org