nikunjbhartia opened a new issue, #136:
URL: https://github.com/apache/datasketches-bigquery/issues/136
Query:
```
SELECT
group_key,
count(*) AS total_count,
bqutil.datasketches.kll_sketch_float_build_k(x, 250) AS kll_sketch
FROM (
SELECT
CONCAT("group_key_", CAST(RAND() * 100 AS INT64)) AS group_key,
RAND() AS x
FROM
UNNEST(GENERATE_ARRAY(1, 1000000))) as sample_data
GROUP BY group_key;
```
BQ Error:
`ReferenceError: sketch is not defined at
bqutil.datasketches.kll_sketch_float_build_k(FLOAT64, INT64) `
Potential issue:
https://github.com/apache/datasketches-bigquery/blob/main/kll/sqlx/kll_sketch_float_build_k.sqlx#L73C6-L73C38
`sketch.merge(state.serialized); `
sketch referenced without state
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]