Fengzdadi opened a new pull request, #84: URL: https://github.com/apache/datasketches-go/pull/84
## Summary Add example test files for 4 sketch types that were previously missing examples: - Theta Sketch - Bloom Filter - Count-Min Sketch - Tuple Sketch ## Motivation The `examples/` directory had examples for some sketches (CPC, HLL, KLL, Frequency) but was missing examples for Theta, Bloom Filter, Count-Min, and Tuple Sketches. These examples help new users understand how to use these sketches. ## Changes | File | Description | |------|-------------| | `examples/theta_example_test.go` | Demonstrates basic ops, Union, Intersection, A-not-B, serialization | | `examples/bloom_filter_example_test.go` | Demonstrates membership testing, Union, serialization | | `examples/count_min_example_test.go` | Demonstrates frequency estimation, merging, serialization | | `examples/tuple_example_test.go` | Demonstrates custom Summary type, aggregation, Union/Intersection with Policy | ## Testing All tests pass: ``` go test -v ./examples/ ``` ## Checklist - [x] All example tests pass - [x] Follows existing code style (Apache license header, testify assertions) - [x] Each example demonstrates key features of its respective sketch -- 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]
