BigQuery to ER Diagram
Paste the DDL from INFORMATION_SCHEMA or the console — backticked project.dataset.table, INT64/STRING, ARRAY<STRUCT<…>> and NOT ENFORCED keys included.
Your diagram renders here.
What we parse in bigquery
- Nested types — ARRAY<STRING> and JSON render verbatim in the column row
- Backticked paths — `project.dataset.table` unwrapped, dataset shown as the group
- Column OPTIONS(description=…) — stripped as noise, never rendered as columns
- NOT ENFORCED keys — ALTER TABLE … ADD FOREIGN KEY statements become relationship edges
Get just the schema
SELECT ddl FROM `my-project.mydataset`.INFORMATION_SCHEMA.TABLES;
Run it in the BigQuery console (or bq query) — INFORMATION_SCHEMA is free metadata, no bytes scanned. Paste the whole ddl column above.
Questions, answered
How do I get the DDL out of BigQuery?
Query your dataset's INFORMATION_SCHEMA: SELECT ddl FROM `project.dataset`.INFORMATION_SCHEMA.TABLES — or open a table's Details tab in the console and copy the DDL.
Does it understand nested types?
Yes — ARRAY<STRING>, STRUCT<…> and JSON render verbatim in the column's type slot, exactly as BigQuery writes them.
BigQuery doesn't enforce foreign keys — what do I get?
NOT ENFORCED PRIMARY KEY / FOREIGN KEY statements are drawn as relationship edges anyway, so the join structure still shows.
Will the INFORMATION_SCHEMA query cost me anything?
No — INFORMATION_SCHEMA queries scan metadata only and are free. Pasting here is free too, and nothing is stored.