You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following query is stored at OrgStats_sql variable.
WITH t_0_AnonymizedCodeContribution AS (SELECT * FROM (
SELECT
JSON_ARRAY(110, 220, 405) AS cl_lengths,
'ads' AS org
UNION ALL
SELECT
JSON_ARRAY(30, 51, 95) AS cl_lengths,
'ads' AS org
UNION ALL
SELECT
JSON_ARRAY(10, 20, 1000) AS cl_lengths,
'games' AS org
) AS UNUSED_TABLE_NAME )
SELECT
AnonymizedCodeContribution.org AS org,
AVG(x_5.value) AS mean_cl_size,
((SUM(1)) / (SUM(((1) / (x_5.value))))) AS harmonic_mean_cl_size
FROM
t_0_AnonymizedCodeContribution AS AnonymizedCodeContribution, JSON_EACH(AnonymizedCodeContribution.cl_lengths) as x_5
GROUP BY org;
The text was updated successfully, but these errors were encountered:
Hi,
Re: the following code in the tutorial.
The output from BigQuery has values for
harmonic_mean_cl_size
but when I run the above code for sqlite, I get none for the same column
Generated SQL Query:
The text was updated successfully, but these errors were encountered: