offdataai
Google BigQuery

AI BigQuery schema generator

Describe your domain in plain English. Ship a BigQuery warehouse — DDL with PARTITION BY and CLUSTER BY, plus a complete dbt project with sources, staging, marts, tests, and seeds.

  • From $1/month
  • 8 SQL targets
  • 174 templates
analytics.fct_order_line · BigQueryPartitioned
PARTITION BY DATE(ordered_at)CLUSTER BY customer_idPRIMARY KEY (order_line_id) NOT ENFORCED
2026-09-282026-10-27 · todayone bar per daily partition · colours are clustered customer blocks

Bytes processed

12.4 GB
PARTITION BY DATE splits the table by day and CLUSTER BY orders each day, so a one-day query reads one partition.
Built for BigQuery

What offdataai writes for BigQuery

Datasets and descriptionsbigquery sql
1CREATE SCHEMA IF NOT EXISTS `conformed_dimensions`;
2
3CREATE TABLE IF NOT EXISTS `conformed_dimensions.dim_payment_method` (
4 payment_method_key INT64 NOT NULL OPTIONS(description='Surrogate key'),
5 method_code STRING NOT NULL,
6 method_name STRING OPTIONS(description='credit_card/debit/paypal/gift_card/bnpl'),
7 provider STRING,
8 PRIMARY KEY (payment_method_key) NOT ENFORCED
9);

PARTITION BY DATE

on large facts

CLUSTER BY

up to four columns

NOT ENFORCED

primary and foreign keys

OPTIONS

descriptions on tables and columns

Types, mapped for BigQuery

from the generator

Your model's logical types become native BigQuery types.

stringSTRING
textSTRING
integerINT64
bigintINT64
decimalNUMERIC
doubleFLOAT64
booleanBOOL
dateDATE
timestampTIMESTAMP
jsonJSON
uuidSTRING
binaryBYTES
Watch the demo

See it in action

A narrated walkthrough, recorded in the real app.

The difference

BigQuery by hand, or generated

By hand

  • ○Decide partitioning and clustering table by table
  • ○Remember that every key must say NOT ENFORCED
  • ○Copy descriptions into OPTIONS for each column
  • ○Track which columns hold personal data somewhere else

With offdataai

  • Partition and cluster columns proposed for large facts
  • Keys emitted in the form BigQuery accepts
  • Descriptions come straight from the model
  • PII intent lives on the column, with a secure-view recipe
Your workflow

Where offdataai fits in your BigQuery stack

1

Connect BigQuery

The Database Modeler reads dataset metadata: tables, columns and keys. Never rows.

2

Fill the gaps

Accept the relationships BigQuery never declared, and classify facts and dimensions.

3

Design the physical layer

Partition columns and clustering picked for the large facts.

4

Generate

BigQuery DDL, PII descriptions, docs and a dbt project for the bigquery adapter.

Descriptions plus a secure view

Without native column masking in BigQuery, offdataai records each column's masking strategy and PII classification in its description, keeping the existing text, and gives you the expressions for an authorized view the analyst role reads instead.

1-- bigquery has no native column masking. The intent below is captured as comments;
2-- enforce it with a secure/authorized view that the analyst role reads instead.
3ALTER TABLE `conformed_dimensions.dim_customer` ALTER COLUMN email
4 SET OPTIONS (description = 'masking:hash; classification:pii');
Capabilities

What offdataai generates

  • BigQuery-native DDL

    PARTITION BY DATE(event_ts), CLUSTER BY, NUMERIC(p,s), JSON, OPTIONS(description), and NOT ENFORCED primary and foreign keys — never generic ANSI SQL.

  • Kimball, Data Vault 2.0, or 3NF

    Three paradigms supported. Pick the one your team uses; the generator emits BigQuery-native DDL for each.

  • Full dbt project

    dbt_project.yml, sources, staging, marts, snapshots, schema tests, and seeds. dbt build works on the first run.

  • Cost-aware design

    With the AI interview, partitions and clustering are chosen to cut scan cost on the queries you described — large facts partition by their most-filtered date and cluster on up to four filter and join columns.

Overview

Why teams choose offdataai

app.offdataai.com
Platform-native DDL, ready to copy, download or push to Git

Platform-native DDL, ready to copy, download or push to Git

  1. 01

    offdataai is purpose-built for BigQuery.

  2. 02

    Our generator emits BigQuery-native DDL with the right types (TIMESTAMP, DATE, INT64, NUMERIC(p,s), JSON), PARTITION BY DATE(...) on large facts, CLUSTER BY on the columns you actually filter on, and NOT ENFORCED keys that document your joins.

  3. 03

    From the same conversation, you also get a complete dbt project ready for dbt build.

Real output

The code it writes, not a sketch

This is the shape of what offdataai generates here, straight from the validated model. Copy it, download it, or push it to Git.

  • BigQuery-native DDL
  • Kimball, Data Vault 2.0, or 3NF
  • Full dbt project
ddl/bigquery.sqlbigquery sql
1CREATE SCHEMA IF NOT EXISTS `analytics`;
2
3CREATE TABLE IF NOT EXISTS `analytics.dim_customer` (
4 customer_sk INT64 NOT NULL,
5 customer_id STRING NOT NULL,
6 name STRING,
7 plan_id STRING,
8 effective_date TIMESTAMP NOT NULL,
9 expiry_date TIMESTAMP NOT NULL,
10 is_current BOOL NOT NULL,
11 PRIMARY KEY (customer_sk) NOT ENFORCED
12)
13OPTIONS(description='SCD2 customer dimension');
14
15CREATE TABLE IF NOT EXISTS `analytics.fct_usage` (
16 usage_id STRING NOT NULL,
17 customer_sk INT64 NOT NULL,
18 plan_id STRING NOT NULL,
19 event_ts TIMESTAMP NOT NULL,
20 api_calls INT64 NOT NULL,
21 PRIMARY KEY (usage_id) NOT ENFORCED,
22 FOREIGN KEY (customer_sk) REFERENCES `analytics.dim_customer`(customer_sk) NOT ENFORCED
23)
24PARTITION BY DATE(event_ts)
25CLUSTER BY customer_sk, plan_id;

Generates native SQL and dbt for 8 platforms · connects live to Snowflake, Databricks, BigQuery, Redshift and Postgres

SnowflakeBigQueryDatabricksRedshiftPostgreSQLSynapseFabricDuckDBdbtSnowflakeBigQueryDatabricksRedshiftPostgreSQLSynapseFabricDuckDBdbt
FAQ

Frequently asked questions

Can offdataai generate BigQuery DDL from plain English?
Yes. Describe your business domain in plain English. offdataai's interview agent gathers grain, cardinality, and partitioning hints, synthesizes a typed Intermediate Representation, and emits BigQuery-native DDL with PARTITION BY and CLUSTER BY.
Does offdataai use BigQuery-specific features like PARTITION BY?
Yes. When you build with the AI interview, a physical-design step adds PARTITION BY DATE(...) to large facts on the most-filtered date or timestamp, and CLUSTER BY on up to four of the columns you filter and join on most. Types use BigQuery-native TIMESTAMP, DATE, INT64, NUMERIC(p,s), and JSON, and primary and foreign keys are declared NOT ENFORCED.
Does it support Kimball, Data Vault, and 3NF on BigQuery?
Yes. All three paradigms are first-class for BigQuery. The synthesis agent shapes the IR; the BigQuery generator emits BigQuery-native DDL for each paradigm.
Does it generate a dbt project for BigQuery?
Yes. offdataai emits a complete dbt project for BigQuery — dbt_project.yml, a profiles.yml example for dbt-bigquery, sources, staging, marts (incremental facts), snapshots for SCD2 dimensions, schema tests, and seed CSVs.
How is this different from asking ChatGPT for BigQuery DDL?
ChatGPT can sketch DDL, but often confuses BigQuery PARTITION BY with Snowflake CLUSTER BY or PostgreSQL partitioning. offdataai runs a dedicated BigQuery generator after a validated IR — the output is reproducible and warehouse-correct.

Part of the offdataai platform

The business context behind accurate AI answers, built from the data model up.

See all six stages →
  1. 01DesignLogical, physical and dimensional models.
  2. 02GenerateSQL, dbt, documentation and migrations.
  3. 03DefineBusiness metrics, semantic models and ontology.
  4. 04ConnectReal warehouse schemas and metadata.
  5. 05GovernDrift, impact analysis, tests and approvals.
  6. 06ActivateMake trusted context available to AI agents.

This page covers Generate and Connect. Every stage works on the same model, so what you design here carries through to the rest.

Accuracy starts with context

Give your AI agents context they can trust.

Design the model, define what your metrics mean, and serve that context to every agent and BI tool, on the warehouse you already run.

Book a demoGet started

Self-serve plans available