offdataai
Databricks

AI Databricks schema generator

Describe your domain in plain English and get a Databricks lakehouse: Delta tables with liquid clustering and Unity Catalog three-part names, plus a complete dbt project. Already on Databricks? Write your reviewed model back to Unity Catalog.

  • From $1/month
  • 8 SQL targets
  • 174 templates
Unity Catalog · main.retailDelta

Catalog explorer

  • main
  • retail
  • fct_order_line
  • dim_customer
  • dim_store
  • net_revenue
dim_customerDELTAcustomer_idPKemailMASKloyalty_tierfct_order_lineDELTAorder_line_idPKcustomer_idFKstore_idFKnet_amountdim_storeDELTAstore_idPKregion
PRIMARY KEY … NOT ENFORCEDMetric view published for Genie
Delta tables in Unity Catalog with informational PK/FK constraints, a column mask on email, and a metric view for Genie.
Watch the demo

See it in action

A narrated walkthrough, recorded in the real app.

The difference

Databricks by hand, or generated

By hand

  • ○Find undeclared joins by reading notebooks and dashboards
  • ○Write ALTER TABLE statements for each key and tag
  • ○Explain to Genie how header and detail tables join
  • ○Write the Delta DDL and dbt models separately

With offdataai

  • Joins suggested from the catalog and from query history
  • Every change listed as one statement you approve
  • A drafted metric view with measures at their own grain
  • Delta DDL, masks and a dbt project from one model
Your workflow

Where offdataai fits in your Databricks stack

1

Connect Unity Catalog

Read catalogs, schemas, tables, columns and comments. Never rows.

2

Learn the real joins

Query history shows which columns people actually join, including joins that only work after LOWER or TRIM.

3

Review or remodel

Accept relationships and PII classifications, or remodel as a star schema or Data Vault.

4

Write it back

Apply the keys, descriptions and PII tags you approved to Unity Catalog, one statement at a time.

5

Publish a metric view

Give Genie measures defined once, at the right grain.

Built for Databricks

What offdataai writes for Databricks

Delta tables in Unity Catalogdatabricks sql
1CREATE SCHEMA IF NOT EXISTS main.conformed_dimensions;
2
3CREATE TABLE IF NOT EXISTS main.conformed_dimensions.dim_payment_method (
4 payment_method_key BIGINT NOT NULL COMMENT 'Surrogate key',
5 method_code STRING NOT NULL,
6 method_name STRING COMMENT 'credit_card/debit/paypal/gift_card/bnpl',
7 provider STRING,
8 CONSTRAINT pk_dim_payment_method PRIMARY KEY (payment_method_key)
9)
10USING DELTA;
Types and governance

Native types, protected data

Types, mapped for Databricks

from the generator

Your model's logical types become native Databricks types.

stringSTRING
textSTRING
integerINT
bigintBIGINT
decimalDECIMAL(18,4)
doubleDOUBLE
booleanBOOLEAN
dateDATE
timestampTIMESTAMP
jsonSTRING
uuidSTRING
binaryBINARY

Unity Catalog column masks

Databricks has column masks in Unity Catalog, so offdataai creates a masking function per strategy and binds it with SET MASK. Partial masking keeps the first two characters for everyone; hash uses sha2.

1-- Requires Unity Catalog. Define a mask UDF per strategy, then bind it.
2CREATE OR REPLACE FUNCTION mask_hash(val STRING) RETURNS STRING RETURN sha2(val, 256);
3CREATE OR REPLACE FUNCTION mask_partial(val STRING) RETURNS STRING RETURN concat(left(val, 2), '****');
4
5ALTER TABLE main.conformed_dimensions.dim_customer ALTER COLUMN email SET MASK mask_hash;
6ALTER TABLE main.conformed_dimensions.dim_customer ALTER COLUMN phone SET MASK mask_partial;

USING DELTA

every table, three-part names

Column masks

a UDF per masking strategy

Write-back

keys, descriptions and PII tags

Metric views

drafted for Genie

Capabilities

What offdataai generates

  • Delta Lake-native DDL

    USING DELTA, CLUSTER BY for liquid clustering, PRIMARY KEY and FOREIGN KEY constraints (not enforced, kept in the catalog), and catalog.schema.table identifiers.

  • Kimball, Data Vault 2.0, or 3NF

    Three paradigms supported on Databricks. The generator emits the right Delta features for each paradigm.

  • Full dbt project

    A dbt-databricks profile example, sources, staging, marts, snapshots, schema tests and seeds. With its seeds, the project passes dbt build on the first run.

  • Apply to Unity Catalog

    Write the keys, descriptions and PII tags you approved back to existing tables. You read every statement first; tags are only added, never overwritten.

  • Join evidence from query history

    Learn which joins your team actually runs from system.query.history, including joins that only match after LOWER or TRIM.

  • Metric views for Genie

    Publish a Unity Catalog metric view from the reviewed model, so each measure is summed at its own grain and Genie stops double-counting.

  • Column masks

    Governance generates a Unity Catalog mask function per strategy (hash, partial, full) and binds it with SET MASK. Partial masking keeps the first two characters for every role.

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

    The generator emits Delta DDL: USING DELTA, liquid clustering (CLUSTER BY) when the AI interview's physical design picks clustering columns, informational primary and foreign keys, escaped table and column comments, and Unity Catalog three-part names.

  2. 02

    From the same model you also get a dbt project for the dbt-databricks adapter.

  3. 03

    For tables you already have, the Database Modeler reads Unity Catalog, learns joins from query history, writes reviewed keys, descriptions and PII tags back, and publishes a metric view so Genie stops double-counting.

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.

  • Delta Lake-native DDL
  • Kimball, Data Vault 2.0, or 3NF
  • Full dbt project
ddl/databricks.sqldatabricks sql
1CREATE SCHEMA IF NOT EXISTS main.analytics;
2
3CREATE TABLE IF NOT EXISTS main.analytics.dim_customer (
4 customer_sk BIGINT NOT NULL,
5 customer_id STRING NOT NULL COMMENT 'Natural key from the CRM',
6 name STRING,
7 effective_date TIMESTAMP NOT NULL,
8 expiry_date TIMESTAMP NOT NULL,
9 is_current BOOLEAN NOT NULL,
10 CONSTRAINT pk_dim_customer PRIMARY KEY (customer_sk)
11)
12USING DELTA
13COMMENT 'SCD2 customer dimension';
14
15CREATE TABLE IF NOT EXISTS main.analytics.fct_usage (
16 usage_id STRING NOT NULL,
17 customer_sk BIGINT NOT NULL,
18 event_ts TIMESTAMP NOT NULL,
19 api_calls BIGINT NOT NULL,
20 CONSTRAINT pk_fct_usage PRIMARY KEY (usage_id),
21 CONSTRAINT fk_fct_usage_customer_sk FOREIGN KEY (customer_sk)
22 REFERENCES main.analytics.dim_customer(customer_sk)
23)
24USING DELTA
25CLUSTER BY (event_ts, customer_sk);

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 Databricks DDL from plain English?
Yes. Describe your business domain in plain English. offdataai's interview agent asks targeted questions, synthesizes a typed Intermediate Representation, and emits Databricks-native DDL using Delta Lake syntax, liquid clustering, informational primary and foreign keys, column and table comments, and Unity Catalog three-part names.
Does offdataai support liquid clustering?
Yes, for models built with the AI interview. When its physical design step names clustering columns, the Databricks generator emits CLUSTER BY (liquid clustering, up to four columns), and PARTITIONED BY when it names partition columns. It does not emit ZORDER BY or generated columns.
Does it use Unity Catalog three-part names?
Yes. Every table is created as catalog.schema.table. The DDL uses the main catalog and the schemas from your model, so replace main if your catalog has another name.
Does it support Kimball, Data Vault, and 3NF on Databricks?
Yes. All three paradigms are first-class. The synthesis agent shapes the IR; the Databricks generator emits the right Delta features for each paradigm.
Does it generate a dbt project for Databricks?
Yes. offdataai emits a complete dbt project for Databricks: a profiles.yml example for the dbt-databricks adapter, sources, staging models, marts, snapshots for SCD2 dimensions, schema tests and seed CSVs. With its seeds, it passes dbt build on the first run.
I already have tables in Unity Catalog. Can offdataai help?
Yes. The Database Modeler reads your Unity Catalog schema (catalog metadata only) and suggests the relationships nobody declared. Turn on “Learn joins from query history” and it also reads the last 90 days of system.query.history for the joins your team actually runs. Once you have reviewed the result, Apply to Unity Catalog writes the keys, descriptions and PII tags back to your tables. Each change is a statement you read before it runs, and existing tags with a different value are left alone.
How does a metric view stop Genie from double-counting?
Genie writes its own SQL. On a header and detail pair, such as orders and order lines, it can sum the header's amount after joining the detail, counting each header once per line. Declared keys don't prevent that. offdataai drafts a Unity Catalog metric view from your reviewed model that defines each measure once at its own grain, lets you edit the YAML, then creates the view and queries each measure once so you can check the totals.

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