AI & Agent Dev Bug Sandbox logo
AI & Agent Dev Bug Sandbox
Back to Radar

Self-Hosted Logflare With BigQuery Backend Cannot Work Out Of The Box

Self-hosted Supabase using Logflare with BigQuery backend fails to display any logs due to missing schema columns, CTE validation across all tables, and Postgres-specific syntax in Cron queries.

highConfidence 75%Logflare

Origin Analysis

Logflare's BigQuery backend does not pre-create all columns required by Studio's log queries, and the logs.all endpoint uses a single query with CTEs for all log sources, causing BigQuery to validate unreferenced CTEs and fail when any column is missing. Additionally, the Cron query uses Postgres-style type cast (::text) not supported by BigQuery.
1. Configure self-hosted Supabase to use Logflare with BigQuery backend. 2. Start Vector to ingest logs. 3. Open Supabase Studio and navigate to any log tab (e.g., Postgres, Cron). Observe invalidQuery errors; all tabs fail due to CTE validation and missing columns.

Fixing Code Block

Edge Case Audit

This script modifies BigQuery schemas in-place. If the parent field exists but is not a RECORD (e.g., a scalar), the script will skip it, potentially leaving issues unresolved. Always run on a test dataset first and back up the original schema. Adding many columns may slightly increase storage metadata but not affect existing data. To rollback, you would need to revert the schema changes or drop and recreate the table (which would lose data). For production, consider rebuilding tables with full schemas in a migration.

Ecosystem Topology

Agent Frameworks

LangChain, LlamaIndex, and Pydantic

  1. highProperty graph relation keys collide when entity IDs or labels contain underscores
  2. highCodeActAgent drops assistant tool-call metadata during handoff, leaving an orphan tool response
  3. high[Bug]: HierarchicalNodeParser async methods return the documents unsplit
  4. highLLM.predict_and_call fails with ValidationError for non-function-calling models when react_chat_formatter is omitted
  5. highAnthropic streaming server-tool input_json_delta overwrites completed client tool_use arguments due to stale cur_tool_call state