GitHub user leerho added a comment to the discussion: Cross-language hashing: inconsistent empty-byte and signed-zero handling
A follow-up on my comment above. The Count-Min version 2 spec, now in [apache/datasketches-tck#21 · docs: add the Count-Min…](https://github.com/apache/datasketches-tck/pull/21), has placeholders for these rules in section 4: 4.4: null and empty items; 4.5: floating-point items, covering ±0.0 and NaN canonicalization; 4.6: other types. Each placeholder states what Count-Min version 2 does today. For example, it ignores empty strings, empty byte arrays and nulls, and it doesn’t define floating-point items for this sketch. Each one points here for the shared policy. Once we agree on that policy, I’d suggest specifying it once in the TCK, for example in a docs/input-encoding.md, and having each family’s format spec refer to it. And to answer my own question about “empty byte sequences”: I see you defined it in section 2 of your post. It means a zero-length array (new byte[0], or a non-null C++ pointer with length zero), not an array of zeros. Thanks! GitHub link: https://github.com/apache/datasketches-tck/discussions/20#discussioncomment-19531977 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
