File tree Expand file tree Collapse file tree
tests/dataform_testing_framework Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,22 +53,6 @@ steps:
5353 args :
5454 - run-script
5555 - build-all-libs
56- # ########################################################################
57- # Clone datasketches-cpp github repo as dependency for building WASM libraries
58- # Build (via emscripten) all WASM libraries for BigQuery Sketch UD(A)Fs
59- # ########################################################################
60- - name : docker.io/emscripten/emsdk
61- id : build_wasm_libs
62- dir : datasketches
63- entrypoint : bash
64- args :
65- - ' -c'
66- - |
67- git clone https://github.com/apache/datasketches-cpp.git
68- for dir in kll-sketch theta-sketch tuple-sketch; do
69- cd $dir && make clean && make all
70- cd ..
71- done
7256 # ##########################################################
7357 # Copy all libs to GCS bucket
7458 # ##########################################################
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ RETURNS STRING
2121LANGUAGE js
2222 OPTIONS (
2323 description="Safely allows mathematical addition on numbers of any magnitude.",
24- library=["${JS_BUCKET }/bn.js-v5.2.1.min.js"])
24+ library=["${dataform.projectConfig.vars.gcsBucket }/bn.js-v5.2.1.min.js"])
2525AS r"""
2626 if (first === null || second === null || first === "" || second === "") {
2727 return null;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ RETURNS STRING
2121LANGUAGE js
2222 OPTIONS (
2323 description="Safely allows calculating the average of numbers of any magnitude.",
24- library=["${JS_BUCKET }/bn.js-v5.2.1.min.js"])
24+ library=["${dataform.projectConfig.vars.gcsBucket }/bn.js-v5.2.1.min.js"])
2525AS r"""
2626 if (numbers === null || numbers.length === 0) {
2727 return null;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ RETURNS STRING
2121LANGUAGE js
2222 OPTIONS (
2323 description="Safely allows mathematical division on numbers of any magnitude.",
24- library=["${JS_BUCKET }/bn.js-v5.2.1.min.js"])
24+ library=["${dataform.projectConfig.vars.gcsBucket }/bn.js-v5.2.1.min.js"])
2525AS r"""
2626 if (first === null || first === "" || second === "0" || second === null || second === "") {
2727 return null;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ RETURNS BOOL
2121LANGUAGE js
2222 OPTIONS (
2323 description="Safely allows equal comparison on numbers of any magnitude.",
24- library=["${JS_BUCKET }/bn.js-v5.2.1.min.js"])
24+ library=["${dataform.projectConfig.vars.gcsBucket }/bn.js-v5.2.1.min.js"])
2525AS r"""
2626 if (first === null || second === null || first === "" || second === "") {
2727 return null;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ RETURNS BOOL
2121LANGUAGE js
2222 OPTIONS (
2323 description="Safely allows greater than comparison on numbers of any magnitude.",
24- library=["${JS_BUCKET }/bn.js-v5.2.1.min.js"])
24+ library=["${dataform.projectConfig.vars.gcsBucket }/bn.js-v5.2.1.min.js"])
2525AS r"""
2626 if (first === null || second === null || first === "" || second === "") {
2727 return null;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ RETURNS BOOL
2121LANGUAGE js
2222 OPTIONS (
2323 description="Safely allows greater than or equal comparison on numbers of any magnitude.",
24- library=["${JS_BUCKET }/bn.js-v5.2.1.min.js"])
24+ library=["${dataform.projectConfig.vars.gcsBucket }/bn.js-v5.2.1.min.js"])
2525AS r"""
2626 if (first === null || second === null || first === "" || second === "") {
2727 return null;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ RETURNS BOOL
2121LANGUAGE js
2222 OPTIONS (
2323 description="Safely allows less than comparison on numbers of any magnitude.",
24- library=["${JS_BUCKET }/bn.js-v5.2.1.min.js"])
24+ library=["${dataform.projectConfig.vars.gcsBucket }/bn.js-v5.2.1.min.js"])
2525AS r"""
2626 if (first === null || second === null || first === "" || second === "") {
2727 return null;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ RETURNS BOOL
2121LANGUAGE js
2222 OPTIONS (
2323 description="Safely allows less than or equal comparison on numbers of any magnitude.",
24- library=["${JS_BUCKET }/bn.js-v5.2.1.min.js"])
24+ library=["${dataform.projectConfig.vars.gcsBucket }/bn.js-v5.2.1.min.js"])
2525AS r"""
2626 if (first === null || second === null || first === "" || second === "") {
2727 return null;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ RETURNS STRING
2121LANGUAGE js
2222 OPTIONS (
2323 description="Safely allows mathematical multiplication on numbers of any magnitude.",
24- library=["${JS_BUCKET }/bn.js-v5.2.1.min.js"])
24+ library=["${dataform.projectConfig.vars.gcsBucket }/bn.js-v5.2.1.min.js"])
2525AS r"""
2626 if (first === null || second === null || first === "" || second === "") {
2727 return null;
You can’t perform that action at this time.
0 commit comments