offdataai
Azure Synapse

AI Azure Synapse schema generator

Describe your domain in plain English. Ship a Synapse dedicated SQL pool — DDL with HASH distribution and clustered columnstore indexes, plus a complete dbt project.

  • From $1/month
  • 8 SQL targets
  • 174 templates
Synapse · dedicated SQL poolDistributing
fct_order_lineDISTRIBUTION = HASH(customer_id)60 distributions · rows land by hash of the keyCLUSTERED COLUMNSTORE INDEXdim_storeDISTRIBUTION = REPLICATENode 1full copyNode 2full copyNode 3full copyNode 4full copyemail MASKED WITH (FUNCTION = 'email()')maya.r@example.comraw
Facts are hash-distributed on a key across all 60 distributions; small dimensions are replicated to every node.
Watch the demo

See it in action

A narrated walkthrough, recorded in the real app.

The difference

Synapse by hand, or generated

By hand

  • ○Decide HASH, REPLICATE or ROUND_ROBIN table by table
  • ○Remember that foreign keys can't be declared in a dedicated pool
  • ○Write masking statements column by column

With offdataai

  • Distribution chosen from the model: hint, then table kind
  • Relationships kept as advisory comments tools can read
  • Dynamic Data Masking generated for every PII column
Your workflow

Where offdataai fits in your Synapse stack

1

Describe or pick a template

Start from the AI interview, a template or the Model Builder canvas.

2

Generate pool-ready DDL

Distribution, columnstore and NVARCHAR/DATETIME2 types on every table.

3

Apply masking

Dynamic Data Masking statements for every PII column in the model.

4

Run dbt on Synapse

A dbt project for the synapse adapter, from the same model.

Built for Synapse

What offdataai writes for Synapse

Hash-distributed factssql
1CREATE TABLE [sales].[fct_order_line] (
2 [order_line_id] BIGINT NOT NULL,
3 [customer_id] BIGINT NOT NULL,
4 [ordered_at] DATETIME2 NOT NULL,
5 [net_amount] DECIMAL(18,4)
6)
7WITH (DISTRIBUTION = HASH([customer_id]), CLUSTERED COLUMNSTORE INDEX);
Types and governance

Native types, protected data

Types, mapped for Synapse

from the generator

Your model's logical types become native Synapse types.

stringNVARCHAR(255)
textNVARCHAR(MAX)
integerINT
bigintBIGINT
decimalDECIMAL(18,4)
doubleFLOAT
booleanBIT
dateDATE
timestampDATETIME2
jsonNVARCHAR(MAX)
uuidUNIQUEIDENTIFIER
binaryVARBINARY(MAX)

Dynamic Data Masking on PII columns

Columns tagged as PII get Synapse's Dynamic Data Masking. Partial masking keeps the first two characters; full and hash strategies use default(), since DDM has no hash function.

1-- Dynamic Data Masking (SQL Server / Synapse / Fabric).
2ALTER TABLE sales.dim_customer ALTER COLUMN email ADD MASKED WITH (FUNCTION = 'partial(2, "****", 0)');
3ALTER TABLE sales.dim_customer ALTER COLUMN phone_number ADD MASKED WITH (FUNCTION = 'default()');

HASH

on the distribution key when the model names one

REPLICATE

for dimensions and lookups

COLUMNSTORE

clustered index on every table

Dynamic Data Masking

for PII columns

Capabilities

What offdataai generates

  • Synapse-native DDL

    DISTRIBUTION = HASH / REPLICATE / ROUND_ROBIN, CLUSTERED COLUMNSTORE INDEX, NVARCHAR, DATETIME2, and BIT — never generic ANSI SQL.

  • Kimball, Data Vault 2.0, or 3NF

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

  • Full dbt project

    dbt_project.yml, a profiles.yml stub for the synapse adapter, sources, staging, marts, snapshots, schema tests, and seeds.

  • Foreign keys as comments

    Dedicated SQL pools don't enforce foreign keys, so each relationship is written as a comment under its table for reviewers and tools.

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 Azure Synapse Analytics.

  2. 02

    Our generator emits Synapse-native DDL for dedicated SQL pools with a distribution on every table (HASH on the dominant join column for facts, REPLICATE for dimensions, ROUND_ROBIN otherwise), a clustered columnstore index on every table, and foreign keys written as comments, since dedicated SQL pools don't enforce them.

  3. 03

    From the same conversation, you also get a complete dbt project for the synapse adapter.

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.

  • Synapse-native DDL
  • Kimball, Data Vault 2.0, or 3NF
  • Full dbt project
ddl/synapse.sqlsynapse sql
1IF NOT EXISTS (SELECT 1 FROM sys.schemas WHERE name='ANALYTICS') BEGIN EXEC('CREATE SCHEMA [ANALYTICS]'); END;
2
3CREATE TABLE [ANALYTICS].[dim_customer] (
4 [customer_sk] BIGINT NOT NULL,
5 [customer_id] NVARCHAR(255) NOT NULL,
6 [name] NVARCHAR(255),
7 [plan_id] NVARCHAR(255),
8 [effective_date] DATETIME2 NOT NULL,
9 [expiry_date] DATETIME2 NOT NULL,
10 [is_current] BIT NOT NULL
11)
12WITH (DISTRIBUTION = REPLICATE, CLUSTERED COLUMNSTORE INDEX);
13
14CREATE TABLE [ANALYTICS].[fct_usage] (
15 [usage_id] NVARCHAR(255) NOT NULL,
16 [customer_sk] BIGINT NOT NULL,
17 [plan_id] NVARCHAR(255) NOT NULL,
18 [event_ts] DATETIME2 NOT NULL,
19 [api_calls] BIGINT NOT NULL
20)
21WITH (DISTRIBUTION = HASH([customer_sk]), CLUSTERED COLUMNSTORE INDEX);
22-- FK (advisory, not enforced in Synapse): [ANALYTICS].[fct_usage].customer_sk -> [ANALYTICS].[dim_customer](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 Azure Synapse DDL from plain English?
Yes. Describe your business domain in plain English. offdataai's interview agent gathers grain, cardinality, and distribution hints, synthesizes a typed Intermediate Representation, and emits Synapse-native DDL for dedicated SQL pools with HASH distribution and clustered columnstore indexes.
Does offdataai choose distribution keys for Synapse?
Yes. When you build with the AI interview, a physical-design step picks DISTRIBUTION = HASH(...) on the dominant join column of each fact table. Dimensions and lookup tables without a hash key get DISTRIBUTION = REPLICATE, and other tables fall back to ROUND_ROBIN.
Does it support clustered columnstore indexes?
Yes. Every table is created WITH CLUSTERED COLUMNSTORE INDEX (CCI), the usual default for analytical workloads on Synapse dedicated SQL pools.
Does it support Kimball, Data Vault, and 3NF on Synapse?
Yes. All three paradigms are first-class on Synapse. The generator emits Synapse-native DDL for each.
Does it generate a dbt project for Synapse?
Yes. offdataai emits a complete dbt project for Synapse — dbt_project.yml, a profiles.yml stub for the synapse adapter (you add the connection details), sources, staging, marts, snapshots for SCD2 dimensions, schema tests, and seed CSVs.

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