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 2024/11/15 19:06:54 UTC

(datasketches-bigquery) branch remove_unnecessary_test created (now 38943ec)

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

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


      at 38943ec  removed unnecessary test file

This branch includes the following new commits:

     new 38943ec  removed unnecessary test file

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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


(datasketches-bigquery) 01/01: removed unnecessary test file

Posted by al...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 38943ec7f58202f483e55f60085ac11e58be251a
Author: AlexanderSaydakov <Al...@users.noreply.github.com>
AuthorDate: Fri Nov 15 11:06:25 2024 -0800

    removed unnecessary test file
---
 tests/unit_test_cases.js | 66 ------------------------------------------------
 1 file changed, 66 deletions(-)

diff --git a/tests/unit_test_cases.js b/tests/unit_test_cases.js
deleted file mode 100755
index 41b5780..0000000
--- a/tests/unit_test_cases.js
+++ /dev/null
@@ -1,66 +0,0 @@
-
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-const { generate_udf_test, generate_udaf_test } = require('./unit_test_utils');
-
-generate_udaf_test("frequent_strings_sketch_build", {
-  input_columns: [`item`, `weight`, '5 NOT AGGREGATE'],
-  input_rows: `SELECT item, 1 as weight
-   FROM UNNEST(['a', 'a', 'c']) as item`,
-  expected_output: `FROM_BASE64('BAEKBQMAAAACAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAEAAAAAAAAAAQAAAGEBAAAAYw==')`,
-});
-
-generate_udaf_test("frequent_strings_sketch_merge", {
-  input_columns: [`sketch`, `5 NOT AGGREGATE`],
-  input_rows: `SELECT * FROM UNNEST([
-      FROM_BASE64('BAEKBQMAAAACAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAEAAAAAAAAAAQAAAGEBAAAAYw=='),
-      FROM_BASE64('BAEKBQMAAAACAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAEAAAAAAAAAAQAAAGEBAAAAYw==')
-    ]) AS sketch`,
-  expected_output: `FROM_BASE64('BAEKBQMAAAACAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAIAAAAAAAAAAQAAAGEBAAAAYw==')`,
-});
-
-
-generate_udaf_test("cpc_sketch_agg_union", {
-  input_columns: [`sketch`],
-  input_rows: `SELECT * FROM UNNEST([FROM_BASE64('CAEQCwAOzJMDAAAAAgAAAAAAAACA+59AHHqBFCABCEDW1da4FQAAAA=='), FROM_BASE64('CAEQCwAOzJMDAAAAAgAAAAAAAAAA+59AKMABFAABCEByjCNtCgAAAA==')]) AS sketch`,
-  expected_output: `FROM_BASE64('BAEQCwAKzJMGAAAAAwAAAOQwS9sgxTzSAAAAAA==')`,
-});
-
-generate_udaf_test("cpc_sketch_agg_string", {
-  input_columns: [`str`],
-  input_rows: `SELECT * FROM UNNEST(['foo', 'bar', 'baz']) AS str`,
-  expected_output: `FROM_BASE64('CAEQCwAOzJMDAAAAAgAAAAAAAAAA+59AKMABFAABCEByjCNtCgAAAA==')`,
-});
-
-generate_udaf_test("cpc_sketch_agg_int64", {
-  input_columns: [`value`],
-  input_rows: `SELECT * FROM UNNEST([1, 2, 3]) AS value`,
-  expected_output: `FROM_BASE64('CAEQCwAOzJMDAAAAAgAAAAAAAACA+59AHHqBFCABCEDW1da4FQAAAA==')`,
-});
-
-generate_udaf_test("cpc_sketch_agg_string_lgk_seed", {
-  input_columns: [`str`, 'STRUCT(12 AS lgk, 9001 AS seed) NOT AGGREGATE'],
-  input_rows: `SELECT * FROM UNNEST(['foo', 'bar', 'baz']) AS str`,
-  expected_output: `FROM_BASE64('CAEQDAAOzJMDAAAAAgAAAAAAAACA/a9AAjgABYAACEByFI5kUwAAAA==')`,
-});
-
-generate_udaf_test("cpc_sketch_agg_union_lgk_seed", {
-  input_columns: [`sketch`, `STRUCT(12 AS lgk, 9001 AS seed) NOT AGGREGATE`],
-  input_rows: `SELECT * FROM UNNEST([FROM_BASE64('CAEQCwAOzJMDAAAAAgAAAAAAAACA+59AHHqBFCABCEDW1da4FQAAAA==')]) AS sketch`,
-  expected_output: `FROM_BASE64('BAEQCwAKzJMDAAAAAgAAANbV1rgVAAAA')`,
-});


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