Slackbot
03/15/2023, 3:30 AMLuiz Augusto
03/15/2023, 10:13 AMselect category, count(*), anyValue(jsonColumn) as "randomValue"
from table
group by 1
So any full json would be ok?John Kowtko
03/15/2023, 1:59 PMLuiz Augusto
03/15/2023, 2:09 PMstringAny how you put in ingestion spec a rollup equivalent for ANY_VALUE(expr, maxBytesPerString) in SQLtilak chowdary
03/16/2023, 4:53 AMLuiz Augusto
03/16/2023, 10:12 AMANY_VALUE(TO_JSON_STRING(expr), maxBytesPerString)John Kowtko
03/16/2023, 1:40 PMselect adblock_list GroupName,
count(*) NumEntries,
max(case when json_value(event, '$.type') like 'Save%' then 1 else 0 end) HasSave
from "kttm-nested"
group by 1
Here is a screenshot showing the statement and output:John Kowtko
03/16/2023, 6:41 PMselect adblock_list GroupName,
count(*) NumEntries,
earliest(json_value(event, '$.type'), 1000) FirstType
from "kttm-nested"
group by 1tilak chowdary
03/17/2023, 1:26 AMSELECT
department,
ANY_VALUE(product, 100),
ANY_VALUE(details, 100)
FROM "nested_data_example"
GROUP BY departmenttilak chowdary
03/17/2023, 2:17 AMJohn Kowtko
03/17/2023, 4:51 AMtilak chowdary
03/22/2023, 8:24 PM