WITH data AS (
SELECT json_extract(json, '$.value') AS v
FROM my_data),
kv AS (
SELECT
key,
json_extract_string(value, '$.string') AS val
FROM data, json_each(v)
WHERE json_extract_string(value, '$.string') IS NOT NULL
)
PIVOT kv ON key USING (MAX(val))
WITH data AS (
SELECT json_extract(json, '$.value') AS v
FROM my_data),
kv AS (
SELECT
key,
json_extract_string(value, '$.string') AS val
FROM data, json_each(v)
WHERE json_extract_string(value, '$.string') IS NOT NULL
)
PIVOT kv ON key USING (MAX(val))
bsky.app/profile/stre...
bsky.app/profile/stre...
All that said its way faster and cheaper to do my dev than having to start and stop Databricks. Loving the duck
All that said its way faster and cheaper to do my dev than having to start and stop Databricks. Loving the duck
I've also got most of it running in dagster
I've also got most of it running in dagster