Repository navigation
Document NaN bit-pattern handling in set semantics - #105787
Merged
Algunenano merged 1 commit intoMay 25, 2026
Merged
Algunenano merged 1 commit into
Algunenano merged 1 commit into
Conversation
Adds a section to the Float types reference page explaining why different NaN values can be treated as distinct by DISTINCT, GROUP BY, uniqExact, countDistinct, and equi-JOIN on Float keys, and how to canonicalize them in user queries. Follow-up to discussion on ClickHouse#105756 (closed in favor of docs-only path). Closes ClickHouse#105748.
This was referenced May 25, 2026
Collaborator
Author
|
cc @Algunenano - this is the docs-only PR you agreed to on #105756. Adds a section to the Float types reference page explaining the byte-wise hash NaN split and shows two canonicalization patterns users can apply when they need NaN-equal set semantics. |
Contributor
|
Workflow [PR], commit [c83d9a7] Summary: ✅ AI ReviewSummaryThis PR adds documentation to Final Verdict
|
Algunenano
approved these changes
May 25, 2026
DavidHe-2008
pushed a commit
to DavidHe-2008/ClickHouse
that referenced
this pull request
Jun 1, 2026
…set-semantics-105748 Document NaN bit-pattern handling in set semantics
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to discussion on #105756 (closed in favor of a docs-only path
per @Algunenano's review). Closes #105748.
Adds a section to
docs/en/sql-reference/data-types/float.mdexplainingthat hash tables compare keys byte-wise, so different
NaNbit patterns(e.g.
0./0.vs literalnanvs ARM NEONlog(-1.)after #98230) aretreated as distinct by
DISTINCT,GROUP BY,uniqExact,countDistinct, and equi-JOINon aFloatkey. Shows twocanonicalization patterns users can apply when they need NaN-equal set
semantics.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Documentation entry for user-facing changes
Version info
26.6.1.132