tisonkun commented on PR #400:
URL: 
https://github.com/apache/datasketches-rust/pull/400#issuecomment-7082131817

   Thanks for the thorough review and cross-implementation comparison, 
@notfilippo!
   
   We pushed five focused commits addressing the design and interoperability 
items above:
   
   - 51eb4453fc37cef38d42e617c8acb4c433a7b2f5: mark `MappingKind` and 
`StoreKind` `#[non_exhaustive]` so additional mapping curves and store layouts 
can be added compatibly.
   - 817d72a0399bd84d04d3e3fe6acc87b6d83e48d8: compare `gamma` and 
`index_offset` within a `1e-12` relative tolerance in 
`IndexMapping::is_compatible` so `sketches-go` `Linear` and `Cubic` payloads 
merge cleanly.
   - d4c4ea9f15b43009319cb07301def2a23e64d89a: evaluate discrete quantile 
indices via the `f64` product `floor(rank * (total_weight - 1) as f64)` below 
`2^53` total weight (retaining `u128` significand scaling above `2^53 - 1`).
   - dba717e537dc0743678fca54c73a9a93bc9ba6f4: track exact `min_value`, 
`max_value`, and `sum` (`Option<f64>`), clamp quantiles to `[min_value, 
max_value]` (returning exact extrema at `0.0` and `1.0`), persist exact 
summaries in `Family::DDSKETCH`, and emit/preserve 
`DDSketchWithExactSummaryStatistics` feature blocks in `serialize_compat` and 
`deserialize_compat` while keeping bare compatibility sketches bare.
   - e80fc28e24b31dda7d5fc38b170d3126e8382e5b: document that the native 
`Family::DDSKETCH` (`id = 25`) wire format is experimental while DataSketches 
standardization is underway, add the `UnboundedDense` allocation guidance on 
`deserialize_compat`, and update the cross-language compatibility notes.
   
   On the two remaining points:
   
   - **`u64` vs fractional weights**: for now we kept concrete `u64` weights to 
stay consistent with the rest of the `0.x` crate (`KllSketch`, `TDigest`, 
`FrequentItemsSketch`) and preserve exact associative merging without extra 
type parameters, and we are open to revisiting fractional weights as workloads 
require.
   - **`sketches-go` and `sketches-java` fixtures**: yes please, we would love 
to have those checked-in fixtures and their generator! Feel free to open a 
follow-up PR (or share them anytime) once this lands.
   
   Please take another look when you get a chance!
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to