You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by al...@apache.org on 2025/02/13 05:26:00 UTC

(datasketches-bigquery) 01/01: rename theta artifacts for consistency

This is an automated email from the ASF dual-hosted git repository.

alsay pushed a commit to branch rename_theta
in repository https://gitbox.apache.org/repos/asf/datasketches-bigquery.git

commit 8667eaa149d516ebb75c0d8b851d993de2c1b6cc
Author: AlexanderSaydakov <Al...@users.noreply.github.com>
AuthorDate: Wed Feb 12 21:25:32 2025 -0800

    rename theta artifacts for consistency
---
 theta/Makefile                                            | 2 +-
 theta/sqlx/theta_sketch_a_not_b_seed.sqlx                 | 2 +-
 theta/sqlx/theta_sketch_agg_int64_lgk_seed_p.sqlx         | 4 ++--
 theta/sqlx/theta_sketch_agg_string_lgk_seed_p.sqlx        | 4 ++--
 theta/sqlx/theta_sketch_agg_union_lgk_seed.sqlx           | 4 ++--
 theta/sqlx/theta_sketch_get_estimate_and_bounds_seed.sqlx | 2 +-
 theta/sqlx/theta_sketch_get_estimate_seed.sqlx            | 2 +-
 theta/sqlx/theta_sketch_get_num_retained_seed.sqlx        | 2 +-
 theta/sqlx/theta_sketch_get_theta_seed.sqlx               | 2 +-
 theta/sqlx/theta_sketch_intersection_seed.sqlx            | 2 +-
 theta/sqlx/theta_sketch_jaccard_similarity_seed.sqlx      | 2 +-
 theta/sqlx/theta_sketch_to_string_seed.sqlx               | 2 +-
 theta/sqlx/theta_sketch_union_lgk_seed.sqlx               | 2 +-
 theta/{theta.cpp => theta_sketch.cpp}                     | 0
 14 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/theta/Makefile b/theta/Makefile
index 0be2244..8b77bf7 100644
--- a/theta/Makefile
+++ b/theta/Makefile
@@ -26,7 +26,7 @@ EMCFLAGS=-I../datasketches-cpp/common/include \
 	-O3 \
 	--bind
 
-ARTIFACTS=theta.mjs theta.js theta.wasm
+ARTIFACTS=theta_sketch.mjs theta_sketch.js theta_sketch.wasm
 
 all: $(ARTIFACTS)
 
diff --git a/theta/sqlx/theta_sketch_a_not_b_seed.sqlx b/theta/sqlx/theta_sketch_a_not_b_seed.sqlx
index 1b98a55..e7fb8f3 100644
--- a/theta/sqlx/theta_sketch_a_not_b_seed.sqlx
+++ b/theta/sqlx/theta_sketch_a_not_b_seed.sqlx
@@ -23,7 +23,7 @@ CREATE OR REPLACE FUNCTION ${self()}(sketchA BYTES, sketchB BYTES, seed INT64)
 RETURNS BYTES
 LANGUAGE js
 OPTIONS (
-  library=["${dataform.projectConfig.vars.jsBucket}/theta.js"],
+  library=["${dataform.projectConfig.vars.jsBucket}/theta_sketch.js"],
   js_parameter_encoding_mode='STANDARD',
   description = '''Computes a sketch that represents the scalar set difference: sketchA and not sketchB.
 
diff --git a/theta/sqlx/theta_sketch_agg_int64_lgk_seed_p.sqlx b/theta/sqlx/theta_sketch_agg_int64_lgk_seed_p.sqlx
index e53ee70..61c050d 100644
--- a/theta/sqlx/theta_sketch_agg_int64_lgk_seed_p.sqlx
+++ b/theta/sqlx/theta_sketch_agg_int64_lgk_seed_p.sqlx
@@ -23,7 +23,7 @@ CREATE OR REPLACE AGGREGATE FUNCTION ${self()}(value INT64, params STRUCT<lg_k B
 RETURNS BYTES 
 LANGUAGE js
 OPTIONS (
-  library=["${dataform.projectConfig.vars.jsBucket}/theta.mjs"],
+  library=["${dataform.projectConfig.vars.jsBucket}/theta_sketch.mjs"],
   description = '''Creates a sketch that represents the cardinality of the given INT64 column.
 
 Param value: the INT64 column of identifiers.
@@ -36,7 +36,7 @@ For more information:
  - https://datasketches.apache.org/docs/Theta/ThetaSketches.html
  '''
 ) AS R"""
-import ModuleFactory from "${dataform.projectConfig.vars.jsBucket}/theta.mjs";
+import ModuleFactory from "${dataform.projectConfig.vars.jsBucket}/theta_sketch.mjs";
 var Module = await ModuleFactory();
 const default_lg_k = Number(Module.DEFAULT_LG_K);
 const default_seed = BigInt(Module.DEFAULT_SEED);
diff --git a/theta/sqlx/theta_sketch_agg_string_lgk_seed_p.sqlx b/theta/sqlx/theta_sketch_agg_string_lgk_seed_p.sqlx
index 053c647..44f16a1 100644
--- a/theta/sqlx/theta_sketch_agg_string_lgk_seed_p.sqlx
+++ b/theta/sqlx/theta_sketch_agg_string_lgk_seed_p.sqlx
@@ -23,7 +23,7 @@ CREATE OR REPLACE AGGREGATE FUNCTION ${self()}(str STRING, params STRUCT<lg_k BY
 RETURNS BYTES 
 LANGUAGE js
 OPTIONS (
-  library=["${dataform.projectConfig.vars.jsBucket}/theta.mjs"],
+  library=["${dataform.projectConfig.vars.jsBucket}/theta_sketch.mjs"],
   description = '''Creates a sketch that represents the cardinality of the given STRING column.
 
 Param str: the STRING column of identifiers.
@@ -36,7 +36,7 @@ For more information:
  - https://datasketches.apache.org/docs/Theta/ThetaSketches.html
  '''
 ) AS R"""
-import ModuleFactory from "${dataform.projectConfig.vars.jsBucket}/theta.mjs";
+import ModuleFactory from "${dataform.projectConfig.vars.jsBucket}/theta_sketch.mjs";
 var Module = await ModuleFactory();
 const default_lg_k = Number(Module.DEFAULT_LG_K);
 const default_seed = BigInt(Module.DEFAULT_SEED);
diff --git a/theta/sqlx/theta_sketch_agg_union_lgk_seed.sqlx b/theta/sqlx/theta_sketch_agg_union_lgk_seed.sqlx
index 3a21b7e..f951923 100644
--- a/theta/sqlx/theta_sketch_agg_union_lgk_seed.sqlx
+++ b/theta/sqlx/theta_sketch_agg_union_lgk_seed.sqlx
@@ -23,7 +23,7 @@ CREATE OR REPLACE AGGREGATE FUNCTION ${self()}(sketch BYTES, params STRUCT<lg_k
 RETURNS BYTES
 LANGUAGE js
 OPTIONS (
-  library=["${dataform.projectConfig.vars.jsBucket}/theta.mjs"],
+  library=["${dataform.projectConfig.vars.jsBucket}/theta_sketch.mjs"],
   description = '''Creates a sketch that represents the union of the given column of sketches.
 
 Param sketch: the column of sketches. Each as BYTES.
@@ -35,7 +35,7 @@ For more information:
  - https://datasketches.apache.org/docs/Theta/ThetaSketches.html
 '''
 ) AS R"""
-import ModuleFactory from "${dataform.projectConfig.vars.jsBucket}/theta.mjs";
+import ModuleFactory from "${dataform.projectConfig.vars.jsBucket}/theta_sketch.mjs";
 var Module = await ModuleFactory();
 const default_lg_k = Number(Module.DEFAULT_LG_K);
 const default_seed = BigInt(Module.DEFAULT_SEED);
diff --git a/theta/sqlx/theta_sketch_get_estimate_and_bounds_seed.sqlx b/theta/sqlx/theta_sketch_get_estimate_and_bounds_seed.sqlx
index 3702e4b..0adac36 100644
--- a/theta/sqlx/theta_sketch_get_estimate_and_bounds_seed.sqlx
+++ b/theta/sqlx/theta_sketch_get_estimate_and_bounds_seed.sqlx
@@ -23,7 +23,7 @@ CREATE OR REPLACE FUNCTION ${self()}(sketch BYTES, num_std_devs BYTEINT, seed IN
 RETURNS STRUCT<estimate FLOAT64, lower_bound FLOAT64, upper_bound FLOAT64>
 LANGUAGE js
 OPTIONS (
-  library=["${dataform.projectConfig.vars.jsBucket}/theta.js"],
+  library=["${dataform.projectConfig.vars.jsBucket}/theta_sketch.js"],
   js_parameter_encoding_mode='STANDARD',
   description = '''Gets distinct count estimate and bounds from a given sketch.
 
diff --git a/theta/sqlx/theta_sketch_get_estimate_seed.sqlx b/theta/sqlx/theta_sketch_get_estimate_seed.sqlx
index 7abde98..d60f082 100644
--- a/theta/sqlx/theta_sketch_get_estimate_seed.sqlx
+++ b/theta/sqlx/theta_sketch_get_estimate_seed.sqlx
@@ -23,7 +23,7 @@ CREATE OR REPLACE FUNCTION ${self()}(sketch BYTES, seed INT64)
 RETURNS FLOAT64
 LANGUAGE js
 OPTIONS (
-  library=["${dataform.projectConfig.vars.jsBucket}/theta.js"],
+  library=["${dataform.projectConfig.vars.jsBucket}/theta_sketch.js"],
   js_parameter_encoding_mode='STANDARD',
   description = '''Gets distinct count estimate from a given sketch.
   
diff --git a/theta/sqlx/theta_sketch_get_num_retained_seed.sqlx b/theta/sqlx/theta_sketch_get_num_retained_seed.sqlx
index 3f4a7dd..890174a 100644
--- a/theta/sqlx/theta_sketch_get_num_retained_seed.sqlx
+++ b/theta/sqlx/theta_sketch_get_num_retained_seed.sqlx
@@ -23,7 +23,7 @@ CREATE OR REPLACE FUNCTION ${self()}(sketch BYTES, seed INT64)
 RETURNS INT
 LANGUAGE js
 OPTIONS (
-  library=["${dataform.projectConfig.vars.jsBucket}/theta.js"],
+  library=["${dataform.projectConfig.vars.jsBucket}/theta_sketch.js"],
   js_parameter_encoding_mode='STANDARD',
   description = '''Returns the number of retained entries in the given sketch.
   
diff --git a/theta/sqlx/theta_sketch_get_theta_seed.sqlx b/theta/sqlx/theta_sketch_get_theta_seed.sqlx
index 630128d..1c505b8 100644
--- a/theta/sqlx/theta_sketch_get_theta_seed.sqlx
+++ b/theta/sqlx/theta_sketch_get_theta_seed.sqlx
@@ -23,7 +23,7 @@ CREATE OR REPLACE FUNCTION ${self()}(sketch BYTES, seed INT64)
 RETURNS FLOAT64
 LANGUAGE js
 OPTIONS (
-  library=["${dataform.projectConfig.vars.jsBucket}/theta.js"],
+  library=["${dataform.projectConfig.vars.jsBucket}/theta_sketch.js"],
   js_parameter_encoding_mode='STANDARD',
   description = '''Returns theta (effective sampling rate) as a fraction from 0 to 1.
   
diff --git a/theta/sqlx/theta_sketch_intersection_seed.sqlx b/theta/sqlx/theta_sketch_intersection_seed.sqlx
index bbb415c..75ffe9a 100644
--- a/theta/sqlx/theta_sketch_intersection_seed.sqlx
+++ b/theta/sqlx/theta_sketch_intersection_seed.sqlx
@@ -23,7 +23,7 @@ CREATE OR REPLACE FUNCTION ${self()}(sketchA BYTES, sketchB BYTES, seed INT64)
 RETURNS BYTES
 LANGUAGE js
 OPTIONS (
-  library=["${dataform.projectConfig.vars.jsBucket}/theta.js"],
+  library=["${dataform.projectConfig.vars.jsBucket}/theta_sketch.js"],
   js_parameter_encoding_mode='STANDARD',
   description = '''Computes a sketch that represents the scalar intersection of the two given sketches.
 
diff --git a/theta/sqlx/theta_sketch_jaccard_similarity_seed.sqlx b/theta/sqlx/theta_sketch_jaccard_similarity_seed.sqlx
index 11f22bd..e2ce69c 100644
--- a/theta/sqlx/theta_sketch_jaccard_similarity_seed.sqlx
+++ b/theta/sqlx/theta_sketch_jaccard_similarity_seed.sqlx
@@ -23,7 +23,7 @@ CREATE OR REPLACE FUNCTION ${self()}(sketchA BYTES, sketchB BYTES, seed INT64)
 RETURNS STRUCT<lower_bound FLOAT64, estimate FLOAT64, upper_bound FLOAT64>
 LANGUAGE js
 OPTIONS (
-  library=["${dataform.projectConfig.vars.jsBucket}/theta.js"],
+  library=["${dataform.projectConfig.vars.jsBucket}/theta_sketch.js"],
   js_parameter_encoding_mode='STANDARD',
   description = '''Computes the Jaccard similarity index with upper and lower bounds.
 The Jaccard similarity index J(A,B) = (A ^ B)/(A U B) is used to measure how similar the two sketches are to each other.
diff --git a/theta/sqlx/theta_sketch_to_string_seed.sqlx b/theta/sqlx/theta_sketch_to_string_seed.sqlx
index a3e29ee..dde5f60 100644
--- a/theta/sqlx/theta_sketch_to_string_seed.sqlx
+++ b/theta/sqlx/theta_sketch_to_string_seed.sqlx
@@ -23,7 +23,7 @@ CREATE OR REPLACE FUNCTION ${self()}(sketch BYTES, seed INT64)
 RETURNS STRING
 LANGUAGE js
 OPTIONS (
-  library=["${dataform.projectConfig.vars.jsBucket}/theta.js"],
+  library=["${dataform.projectConfig.vars.jsBucket}/theta_sketch.js"],
   js_parameter_encoding_mode='STANDARD',
   description = '''Returns a summary string that represents the state of the given sketch.
 
diff --git a/theta/sqlx/theta_sketch_union_lgk_seed.sqlx b/theta/sqlx/theta_sketch_union_lgk_seed.sqlx
index 3024960..90cbed2 100644
--- a/theta/sqlx/theta_sketch_union_lgk_seed.sqlx
+++ b/theta/sqlx/theta_sketch_union_lgk_seed.sqlx
@@ -23,7 +23,7 @@ CREATE OR REPLACE FUNCTION ${self()}(sketchA BYTES, sketchB BYTES, lg_k BYTEINT,
 RETURNS BYTES
 LANGUAGE js
 OPTIONS (
-  library=["${dataform.projectConfig.vars.jsBucket}/theta.js"],
+  library=["${dataform.projectConfig.vars.jsBucket}/theta_sketch.js"],
   js_parameter_encoding_mode='STANDARD',
   description = '''Computes a sketch that represents the scalar union of the two given sketches.
 
diff --git a/theta/theta.cpp b/theta/theta_sketch.cpp
similarity index 100%
rename from theta/theta.cpp
rename to theta/theta_sketch.cpp


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org