This is an automated email from the ASF dual-hosted git repository.
alsay pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datasketches-bigquery.git
The following commit(s) were added to refs/heads/main by this push:
new 757aa79 configurable project and dataset
757aa79 is described below
commit 757aa795f86f950e7ca821e115b6248f22841e8b
Author: AlexanderSaydakov <[email protected]>
AuthorDate: Tue Jun 11 11:25:19 2024 -0700
configurable project and dataset
---
theta_sketch_a_not_b.sql | 2 +-
theta_sketch_agg_string.sql | 2 +-
theta_sketch_agg_union.sql | 2 +-
theta_sketch_get_estimate.sql | 2 +-
theta_sketch_scalar_intersection.sql | 2 +-
theta_sketch_scalar_union.sql | 2 +-
theta_sketch_to_string.sql | 2 +-
7 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/theta_sketch_a_not_b.sql b/theta_sketch_a_not_b.sql
index 6912b2a..fb2f338 100644
--- a/theta_sketch_a_not_b.sql
+++ b/theta_sketch_a_not_b.sql
@@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
-CREATE OR REPLACE FUNCTION test.theta_sketch_a_not_b(sketch1 BYTES, sketch2
BYTES, seed INT64) RETURNS BYTES LANGUAGE js
+CREATE OR REPLACE FUNCTION
`$BQ_PROJECT.$BQ_DATASET`.theta_sketch_a_not_b(sketch1 BYTES, sketch2 BYTES,
seed INT64) RETURNS BYTES LANGUAGE js
OPTIONS (library=["gs://datasketches/theta_sketch.js"]) AS R"""
const default_seed = BigInt(9001);
var a_not_b = new Module.theta_a_not_b(seed ? BigInt(seed) : default_seed);
diff --git a/theta_sketch_agg_string.sql b/theta_sketch_agg_string.sql
index 73286ae..87c2514 100644
--- a/theta_sketch_agg_string.sql
+++ b/theta_sketch_agg_string.sql
@@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
-CREATE OR REPLACE AGGREGATE FUNCTION test.theta_sketch_agg_string(str STRING,
seed INT64 NOT AGGREGATE) RETURNS BYTES LANGUAGE js
+CREATE OR REPLACE AGGREGATE FUNCTION
`$BQ_PROJECT.$BQ_DATASET`.theta_sketch_agg_string(str STRING, seed INT64 NOT
AGGREGATE) RETURNS BYTES LANGUAGE js
OPTIONS (library=["gs://datasketches/theta_sketch.mjs"]) AS R"""
import ModuleFactory from "gs://datasketches/theta_sketch.mjs";
var Module = await ModuleFactory();
diff --git a/theta_sketch_agg_union.sql b/theta_sketch_agg_union.sql
index b50e8d5..37746a5 100644
--- a/theta_sketch_agg_union.sql
+++ b/theta_sketch_agg_union.sql
@@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
-CREATE OR REPLACE AGGREGATE FUNCTION test.theta_sketch_agg_union(sketch BYTES,
lg_k INT64 NOT AGGREGATE) RETURNS BYTES LANGUAGE js
+CREATE OR REPLACE AGGREGATE FUNCTION
`$BQ_PROJECT.$BQ_DATASET`.theta_sketch_agg_union(sketch BYTES, lg_k INT64 NOT
AGGREGATE) RETURNS BYTES LANGUAGE js
OPTIONS (library=["gs://datasketches/theta_sketch.mjs"]) AS R"""
import ModuleFactory from "gs://datasketches/theta_sketch.mjs";
var Module = await ModuleFactory();
diff --git a/theta_sketch_get_estimate.sql b/theta_sketch_get_estimate.sql
index c00608d..a2b8561 100644
--- a/theta_sketch_get_estimate.sql
+++ b/theta_sketch_get_estimate.sql
@@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
-CREATE OR REPLACE FUNCTION test.theta_sketch_get_estimate(base64 BYTES, seed
INT64) RETURNS INT64 LANGUAGE js
+CREATE OR REPLACE FUNCTION
`$BQ_PROJECT.$BQ_DATASET`.theta_sketch_get_estimate(base64 BYTES, seed INT64)
RETURNS INT64 LANGUAGE js
OPTIONS (library=["gs://datasketches/theta_sketch.js"]) AS R"""
const default_seed = BigInt(9001);
try {
diff --git a/theta_sketch_scalar_intersection.sql
b/theta_sketch_scalar_intersection.sql
index 7820e3c..2ff3909 100644
--- a/theta_sketch_scalar_intersection.sql
+++ b/theta_sketch_scalar_intersection.sql
@@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
-CREATE OR REPLACE FUNCTION test.theta_sketch_scalar_intersection(sketchBytes1
BYTES, sketchBytes2 BYTES, seed INT64) RETURNS BYTES LANGUAGE js
+CREATE OR REPLACE FUNCTION
`$BQ_PROJECT.$BQ_DATASET`.theta_sketch_scalar_intersection(sketchBytes1 BYTES,
sketchBytes2 BYTES, seed INT64) RETURNS BYTES LANGUAGE js
OPTIONS (library=["gs://datasketches/theta_sketch.js"]) AS R"""
const default_seed = BigInt(9001);
var intersection = new Module.theta_intersection(seed ? BigInt(seed) :
default_seed);
diff --git a/theta_sketch_scalar_union.sql b/theta_sketch_scalar_union.sql
index eea4626..832510c 100644
--- a/theta_sketch_scalar_union.sql
+++ b/theta_sketch_scalar_union.sql
@@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
-CREATE OR REPLACE FUNCTION test.theta_sketch_scalar_union(sketch1 BYTES,
sketch2 BYTES, lg_k INT64, seed INT64) RETURNS BYTES LANGUAGE js
+CREATE OR REPLACE FUNCTION
`$BQ_PROJECT.$BQ_DATASET`.theta_sketch_scalar_union(sketch1 BYTES, sketch2
BYTES, lg_k INT64, seed INT64) RETURNS BYTES LANGUAGE js
OPTIONS (library=["gs://datasketches/theta_sketch.js"]) AS R"""
const default_lg_k = 12;
const default_seed = BigInt(9001);
diff --git a/theta_sketch_to_string.sql b/theta_sketch_to_string.sql
index 876b09e..89c9234 100644
--- a/theta_sketch_to_string.sql
+++ b/theta_sketch_to_string.sql
@@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
-CREATE OR REPLACE FUNCTION test.theta_sketch_to_string(base64 BYTES, seed
INT64) RETURNS STRING LANGUAGE js
+CREATE OR REPLACE FUNCTION
`$BQ_PROJECT.$BQ_DATASET`.theta_sketch_to_string(base64 BYTES, seed INT64)
RETURNS STRING LANGUAGE js
OPTIONS (library=["gs://datasketches/theta_sketch.js"]) AS R"""
try {
const default_seed = BigInt(9001);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]