Skip to content

Normalize NAN to a single nan type, like we do with inf#11597

Merged
oranagra merged 4 commits intoredis:unstablefrom
enjoy-binbin:normalize_nan
Dec 8, 2022
Merged

Normalize NAN to a single nan type, like we do with inf#11597
oranagra merged 4 commits intoredis:unstablefrom
enjoy-binbin:normalize_nan

Conversation

@enjoy-binbin
Copy link
Contributor

From https://en.wikipedia.org/wiki/NaN#Display, it says
that apart from nan and -nan, we can also get NAN and even
nan(char-sequence) from libc.

In #11482, our conclusion was that we wanna normalize it in
Redis to a single nan type, like we already normalized inf.

For this, we also reverted the assert_match part of the test
added in #11506, using assert_equal to validate the changes.

From https://en.wikipedia.org/wiki/NaN#Display, it says
that apart from nan and -nan, we can also get NAN and even
nan(char-sequence) from libc.

In redis#11482, our conclusion was that we wanna normalize it in
Redis to a single nan type, like we already normalized inf.

For this, we also reverted the assert_match part of the test
added in redis#11506, using assert_equal to validate the changes.
@enjoy-binbin enjoy-binbin requested a review from oranagra December 8, 2022 09:33
Copy link
Contributor

@zuiderkwast zuiderkwast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@oranagra oranagra merged commit fa5474e into redis:unstable Dec 8, 2022
@oranagra oranagra added the release-notes indication that this issue needs to be mentioned in the release notes label Dec 8, 2022
@enjoy-binbin enjoy-binbin deleted the normalize_nan branch December 8, 2022 23:31
enjoy-binbin added a commit to enjoy-binbin/redis-specifications that referenced this pull request Dec 9, 2022
In redis/redis#11597, Redis 7.2,
we normalized NaN in Redis to a single nan type, like we
already normalized inf.
@enjoy-binbin enjoy-binbin added the state:needs-doc-pr requires a PR to redis-doc repository label Dec 22, 2022
oranagra added a commit to redis/redis-specifications that referenced this pull request Jan 5, 2023
In redis/redis#11597, Redis 7.2,
we normalized NaN in Redis to a single nan type, like we
already normalized inf.

Co-authored-by: Viktor Söderqvist <[email protected]>
Co-authored-by: Oran Agra <[email protected]>
madolson pushed a commit to madolson/redis that referenced this pull request Apr 19, 2023
From https://en.wikipedia.org/wiki/NaN#Display, it says
that apart from nan and -nan, we can also get NAN and even
nan(char-sequence) from libc.

In redis#11482, our conclusion was that we wanna normalize it in
Redis to a single nan type, like we already normalized inf.

For this, we also reverted the assert_match part of the test
added in redis#11506, using assert_equal to validate the changes.
enjoy-binbin added a commit to enjoy-binbin/redis that referenced this pull request Jul 31, 2023
From https://en.wikipedia.org/wiki/NaN#Display, it says
that apart from nan and -nan, we can also get NAN and even
nan(char-sequence) from libc.

In redis#11482, our conclusion was that we wanna normalize it in
Redis to a single nan type, like we already normalized inf.

For this, we also reverted the assert_match part of the test
added in redis#11506, using assert_equal to validate the changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes indication that this issue needs to be mentioned in the release notes state:needs-doc-pr requires a PR to redis-doc repository

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants