mirror of
https://github.com/supabase/supabase.git
synced 2026-10-16 06:39:09 +03:00
Add rewriteBqLogsSqlToClickhouse: parses the user's BigQuery logs query with the polyglot SDK, rewrites it onto the OTEL logs schema on the AST (FROM logs + source filter, drop unnest joins, nested fields -> log_attributes[...] with numeric casts), and regenerates ClickHouse SQL. The banner's button now runs this directly on the editor and only falls back to the AI Assistant when it can't. Lazy-loaded so the WASM stays out of the main bundle. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>