Skip to content
All posts
Engineering 6 min

A pipeline in plain English, compiled

DataAstra

Every data tool now has a box where you type what you want and a model writes SQL. The SQL looks right. It names a column called customer_segment. There is no column called customer_segment. You find out when it runs.

The problem is not the model. The problem is that the model's output goes straight to execution with nothing in between that knows your estate. In DataAstra there is something in between: the compiler.

The ask

Sam is a data engineer at Brightmoor, a sample retailer we built to prove the platform. He wants a silver table of completed sales lines, joined to the order, the product, the shop and the loyalty member. He writes it as a sentence in the Studio.

The prompt the model receives is grounded twice. Once in the grammar of .flow, so it writes the language and not a cousin of it. Once in the tenant's catalog, so the only tables and columns it can name are ones that exist and that Sam may read.

The draft is compiled before it is shown

What comes back is a .flow file, and before Sam sees it, the compiler has checked it against the live catalog. Every source must exist. Every column a transform reads must be produced by the step before it. Every type must line up. A column the model invented is a compile error with a line number, shown to Sam, not a failed run at 3 a.m.

Sample data: Brightmoor is a fictional organisation
Studio split view: the pipeline source with its intent, schedule, tags and typed expects blocks for each source, beside the compiled canvas
The draft as source: the pipeline's intent, its schedule, and an expects block per source that names every column it reads, with its type.

Notice the expects blocks. Each source says exactly which columns it reads and their types. If the team that owns bronze.order_line renames discount_amount, this pipeline fails to compile on their change, citing this file. The break is found by the person who caused it, before it ships.

Code and canvas, one artifact

The canvas is not a second drawing that can drift from the code. It is what the compiler made of the file.

Sample data: Brightmoor is a fictional organisation
The canvas: five sources into the sales transform, then the sales_checks quality gate, then the silver_sales sink, each card with a plain-words line
The same file as a canvas: five sources, one transform that joins them, a quality gate that asserts three rules and expects one, and the silver sink.

Click a line of code and its block is selected. Change a field in the block's form and the file is rewritten. The form only offers what the grammar accepts, so nothing dragged in or typed into it can fail to compile.

Sample data: Brightmoor is a fictional organisation
The cursor on transform sales; the Properties form shows Input, Where, Group by, Keep, Join with, Columns, New column, Type and Computed as
The cursor on transform sales: the form lists every clause the compiler accepts for a transform, with what each one does.

Run it, and read the run

When it runs, the run page draws the same blocks with what happened to them: rows, duration, checks passed, where the time went.

Sample data: Brightmoor is a fictional organisation
A pipeline run page: five steps with passed chips, rows, duration and checks, a bar showing where the time went, and the recent runs
A run, drawn with the same blocks: each step's rows, duration and checks, and where the time went.

The language covers more than straight lines. A pipeline can branch into arms, run a step for each partition, wait for a signal, hold a step for a person to approve, or route rows that fail a quality gate to quarantine and carry on.

And a step can be an agent task: a model labelling rows mid-pipeline. Its calls, tokens and cost show on the run, and they are billed to the person who ran it, under the tenant's AI policy.

Why this is the right order

AI that writes code is only as safe as the check between the writing and the running. For data, that check has to know the catalog, the types, the grants and the business definitions. A compiler is the one tool built to do exactly that, every time, before anything runs. So we put the AI in front of it, not after it.

See the demo script or the use cases.