This is an automated email from the ASF dual-hosted git repository. alsay pushed a commit to branch avoid_artifact_clash in repository https://gitbox.apache.org/repos/asf/datasketches-bigquery.git
commit c4369551269a6f54bb134c21b8da25815b866a8e Author: AlexanderSaydakov <[email protected]> AuthorDate: Fri Oct 25 15:30:02 2024 -0700 renamed theta_sketch to theta to avoid conflict with existing artifacts in BigQuery --- 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_sketch.cpp => theta.cpp} | 0 14 files changed, 16 insertions(+), 16 deletions(-) diff --git a/theta/Makefile b/theta/Makefile index bd1674f..1a140d7 100644 --- a/theta/Makefile +++ b/theta/Makefile @@ -26,7 +26,7 @@ EMCFLAGS=-I../datasketches-cpp/common/include \ -O3 \ --bind -ARTIFACTS=theta_sketch.mjs theta_sketch.js theta_sketch.wasm +ARTIFACTS=theta.mjs theta.js theta.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 d31d06c..a4e1615 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=["${JS_BUCKET}/theta_sketch.js"], + library=["${JS_BUCKET}/theta.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 6cb8d09..828f785 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=["${JS_BUCKET}/theta_sketch.mjs"], + library=["${JS_BUCKET}/theta.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 "${JS_BUCKET}/theta_sketch.mjs"; +import ModuleFactory from "${JS_BUCKET}/theta.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 c36224c..f3bb8be 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=["${JS_BUCKET}/theta_sketch.mjs"], + library=["${JS_BUCKET}/theta.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 "${JS_BUCKET}/theta_sketch.mjs"; +import ModuleFactory from "${JS_BUCKET}/theta.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 32f2816..a775972 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=["${JS_BUCKET}/theta_sketch.mjs"], + library=["${JS_BUCKET}/theta.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 "${JS_BUCKET}/theta_sketch.mjs"; +import ModuleFactory from "${JS_BUCKET}/theta.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 8c755d9..0ae0b5c 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=["${JS_BUCKET}/theta_sketch.js"], + library=["${JS_BUCKET}/theta.js"], js_parameter_encoding_mode='STANDARD', description = '''Gets cardinality estimate and bounds from given sketch. diff --git a/theta/sqlx/theta_sketch_get_estimate_seed.sqlx b/theta/sqlx/theta_sketch_get_estimate_seed.sqlx index a09138a..d5c9bc7 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=["${JS_BUCKET}/theta_sketch.js"], + library=["${JS_BUCKET}/theta.js"], js_parameter_encoding_mode='STANDARD', description = '''Gets cardinality estimate and bounds from 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 1b9ea8c..4eef91b 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=["${JS_BUCKET}/theta_sketch.js"], + library=["${JS_BUCKET}/theta.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 b31d28b..3b33f2f 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=["${JS_BUCKET}/theta_sketch.js"], + library=["${JS_BUCKET}/theta.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 07d9703..c9b676d 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=["${JS_BUCKET}/theta_sketch.js"], + library=["${JS_BUCKET}/theta.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 efaec36..9886af2 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=["${JS_BUCKET}/theta_sketch.js"], + library=["${JS_BUCKET}/theta.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 e4fc55f..da6ec79 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=["${JS_BUCKET}/theta_sketch.js"], + library=["${JS_BUCKET}/theta.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 d55d944..b40c91b 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=["${JS_BUCKET}/theta_sketch.js"], + library=["${JS_BUCKET}/theta.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_sketch.cpp b/theta/theta.cpp similarity index 100% rename from theta/theta_sketch.cpp rename to theta/theta.cpp --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
