Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure in frequent_strings_sketch_build() #146

Open
nikunjbhartia opened this issue Mar 13, 2025 · 1 comment
Open

Failure in frequent_strings_sketch_build() #146

nikunjbhartia opened this issue Mar 13, 2025 · 1 comment

Comments

@nikunjbhartia
Copy link

SELECT
bqutil.datasketches.frequent_strings_sketch_build(file_extension, 1, 5) as extensions_fi_sketch
FROM (
SELECT
REGEXP_EXTRACT(path, r'.([^.]+)$') AS file_extension,
FROM bigquery-public-data.github_repos.files )

Error:

ReferenceError: sketch is not defined at bqutil.datasketches.frequent_strings_sketch_build(STRING, INT64, INT64) line 34, columns 27-28

Issue: sketch referenced without state.
https://github.com/apache/datasketches-bigquery/blob/main/fi/sqlx/frequent_strings_sketch_build.sqlx#L64C7-L64C38

@nikunjbhartia nikunjbhartia changed the title Failure in frequent_strings_sketch_build Failure in frequent_strings_sketch_build() Mar 13, 2025
@nikunjbhartia
Copy link
Author

same issue with frequent_strings_sketch_merge()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant