Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Writes, reviews, and migrates Supabase logs queries against the ClickHouse logs table, including BigQuery unnest conversion.
41% 100%+59 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 9 of 22 without it.
Translate this legacy BigQuery query to Supabase Logs Explorer ClickHouse SQL: SELECT timestamp, m.request.method FROM `project.supabase_logs.edge_logs` CROSS JOIN UNNEST(metadata) AS m WHERE m.request.method = 'POST' LIMIT 50
Replaces UNNEST with direct bracket lookup log_attributes['request.method']
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Supabase logs live in a single ClickHouse logs table, served by the
logs.all.otel analytics endpoint. Every log line from every part of the stack
is one row in this table, tagged by a source column. This replaces the older
BigQuery model, where each service had its own table and fields were reached
through cross join unnest(metadata).
Two kinds of work use this skill, and they share the same SQL model:
If you are converting an existing BigQuery logs query, read references/bigquery-migration.md for the full translation table.
Each row has a small set of real columns. Everything specific to a service lives
in log_attributes.
| Column | Type | Notes |
|---|---|---|
id | String | Unique log identifier. |
timestamp | DateTime64 (UTC) | When the log was produced. Order/compare it directly. |
event_message | String | The raw log line. |
severity_text | String | Log level, when the source sets one. |
source | String | The service the log came from. Filter on this to scope to a service. |
log_attributes | Map(String, String) | Structured per-source fields, keyed by a dotted path. |
timestamp is formatted like 2026-06-22T09:34:06.215000 (ISO 8601, microsecond
precision, no trailing Z). In the Logs Explorer the selected time range is
applied for you, so you rarely need to write a timestamp filter by hand.
A minimal, well-formed query. Lead with a comment naming the query, filter by
source, always limit, and omit trailing semicolons:
Next to this one in the catalogue, plus more from the same author.