This is an automated email from the ASF dual-hosted git repository.
alsay pushed a commit to branch cpc_tests
in repository https://gitbox.apache.org/repos/asf/datasketches-bigquery.git
The following commit(s) were added to refs/heads/cpc_tests by this push:
new 55cc039 added test for cpc_sketch_to_string_seed
55cc039 is described below
commit 55cc0394601cb6c59fe4012589d9f0b5168cb0af
Author: AlexanderSaydakov <[email protected]>
AuthorDate: Tue Nov 5 17:14:51 2024 -0800
added test for cpc_sketch_to_string_seed
---
tests/cpc_sketch_test.js | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/tests/cpc_sketch_test.js b/tests/cpc_sketch_test.js
index 4893efb..3a348ee 100644
--- a/tests/cpc_sketch_test.js
+++ b/tests/cpc_sketch_test.js
@@ -123,6 +123,21 @@ generate_udf_test("cpc_sketch_get_estimate_seed", [{
expected_output: 5.003258518185566
}]);
+generate_udf_test("cpc_sketch_to_string_seed", [{
+ inputs: [ cpc_union_10_111_1, 111 ],
+ expected_output: `'''### CPC sketch summary:
+ lg_k : 10
+ seed hash : d38c
+ C : 5
+ flavor : 1
+ merged : true
+ interesting col: 0
+ table entries : 5
+ window : not allocated
+### End sketch summary
+'''`
+}]);
+
const cpc_10_111_3 =
`FROM_BASE64('CgEQCgAejNObDgAAEwAAAAAAAODTamJAEuxQsYzzw0AHAAAAkwAAAItbgcaBtLoCnGenKGkCETFyOS7wvKi2gMwNzDqqRZ/mxry4yzw35mVS/KqEzafPfdfa8cjkrnqKux4nnm/ltHoIYSSxQBrnJnF0nYvhGpSt2Kp7XVBocExL1HRWxmbzSsURbgKE2j3kvk7a0cp33F5fskKIRnam+oovpGrsDvAITGp0QhFm72qi3Cwfu6bWwX727GC96atVa1q4EQuKH90kW+QA8PoNyJkDMeW9W5NsZ0ivKwiIW43R1x0aJkJ66UvCCrRBzGvIqml9M02+vmq6aiQCi8uMnpFsXLPku+E4Wh6iI/eERBdqvcdKkkcmUNZXe5Edqp5jfrW+riW6lZYhByM3Nwmq5RqJE3fdGMQyXialhnb3IZZWhiotTGUIl6lz7XcxMGaNFWAhPM4sV
[...]
generate_udaf_test("cpc_sketch_agg_int64_lgk_seed", {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]