etseidl commented on pull request #266: URL: https://github.com/apache/datasketches-cpp/pull/266#issuecomment-1063731338
adding a call to to_string() shows the problem...only the first couponCount
slots are filled in for the second (deserialized) sketch.
```
% ./a.out
sk 10
### HLL sketch summary:
Log Config K : 10
Hll Target : HLL_4
Current Mode : SET
LB : 10
Estimate : 10
UB : 10.0005
OutOfOrder flag: false
Coupon count : 10
### End HLL sketch summary
### HLL sketch data detail:
Index Key Slot Value
0 0 0 0
1 39697537 129 1
2 0 0 0
3 0 0 0
4 0 0 0
5 0 0 0
6 33107846 902 3
7 0 0 0
8 0 0 0
9 0 0 0
10 0 0 0
11 12769227 971 1
12 0 0 0
13 0 0 0
14 0 0 0
15 0 0 0
16 18344385 449 1
17 0 0 0
18 57874130 722 1
19 0 0 0
20 39952948 564 3
21 57049461 373 1
22 0 0 0
23 0 0 0
24 0 0 0
25 0 0 0
26 37891580 508 2
27 15099259 379 2
28 50065963 555 1
29 0 0 0
30 0 0 0
31 0 0 0
### End HLL sketch data detail
sk2 10
### HLL sketch summary:
Log Config K : 10
Hll Target : HLL_4
Current Mode : SET
LB : 10
Estimate : 10
UB : 10.0005
OutOfOrder flag: false
Coupon count : 10
### End HLL sketch summary
### HLL sketch data detail:
Index Key Slot Value
0 0 0 0
1 39697537 129 1
2 0 0 0
3 0 0 0
4 0 0 0
5 0 0 0
6 33107846 902 3
7 0 0 0
8 0 0 0
9 0 0 0
10 0 0 0
11 0 0 0
12 0 0 0
13 0 0 0
14 0 0 0
15 0 0 0
16 0 0 0
17 0 0 0
18 0 0 0
19 0 0 0
20 0 0 0
21 0 0 0
22 0 0 0
23 0 0 0
24 0 0 0
25 0 0 0
26 0 0 0
27 0 0 0
28 0 0 0
29 0 0 0
30 0 0 0
31 0 0 0
```
--
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]
