Skip to content

Concept

01of 08

Data

14 min read

Lakehouse architecture

What it is, in one sentence

A single place to find and query raw and ready data: one catalog, one access rule and one query that serve dashboards, SQL and AI without copying anything.

01The problem

Two storehouses.
Two numbers.

For years, companies stored the data twice: everything in a cheap place, and a tidy part in an expensive one. Lakehouse architecture exists to put an end to the second copy.

The data leaves the system, lands in one storehouse and is copied to another. Each copy has its own rule and its own date.

The data lake stores everything as it arrived: file, record, event. It is cheap and refuses nothing. It guarantees nothing either. With no schema and no rule, it becomes a place where a lot is kept and little is found.

The data warehouse is the opposite. Only what was modeled goes in, queries are fast and the number is trustworthy. It costs more to grow and does not serve well what is not a table.

Whoever has both keeps a bridge between them. The bridge copies, and the copy ages. The dashboard reads the warehouse, the data scientist reads the lake, and the two show up to the meeting with different numbers.

What the copy costs

The copy ages

Between yesterday's load and today's question, the data changed at the source. The dashboard shows the past, and nobody knows from when.

updated: yesterday, 02:00

The rule does not travel

The permission holds in the source system. In the copy, someone has to remember to write another one, and to remove it when the person changes departments.

cpf · visible in the copy

The math splits

Each storehouse computes its own way. The same metric gets two definitions and two answers.

revenue: 48.2 or 59.6?

The cost doubles

Two storages, two engines, two teams and a load routine just to keep the two in agreement.

nightly load · 3 h 40 min

02The idea

Three designs.
The third joins the two.

Lakehouse is not a product. It is a way of arranging catalog, rule and query so that the cheap place and the trustworthy place are the same one. In the market definition, that includes storing everything in a single storage. This page follows what changes day to day: how the data is found, protected and read.

Data lake

Stores everything, as it arrived.

What it stores
Anything: file, record, event.
Structure
Decided on read, by whoever reads.
Governance
By folder and by file.
Serves well
Data science and exploration.
Where it fails
With no guarantee, the dashboard does not trust the number.

Data warehouse

Only what was modeled.

What it stores
Tables with a defined schema.
Structure
Decided on write, by whoever loads.
Governance
By table, column and row.
Serves well
BI and reports.
Where it fails
Expensive to grow and closed to what is not a table.

Lakehouse

One place. Both guarantees.

What it stores
Raw and ready, in the same catalog.
Structure
Grows by layer: loose in raw, firm in ready.
Governance
A single one, by table, column and row, across all layers.
Serves well
BI, SQL, data science and AI, on the same data.
What it requires
A catalog and layer discipline. Without that, it becomes a lake again.

03How it works

One catalog.
One query door.

The data matures in three layers and is read through a single query. The catalog and the access rule apply to all three layers, to the sources left outside and to every use.

Lakehouse architecture, from source to useExample with fictitious names.

Who reads what:

Tap a use to see the layer it reads.

  1. A pipeline loads the raw layerThe transactional database, the files and the events reach the raw layer as they came from the source.
  2. RawAs it arrived. Nothing is lost, and it serves as proof.pedidos_bruto
  3. RefinedClean and typed, with no duplicates and the key checked.pedidos
  4. ReadyModeled for the business question.receita_por_uf
  5. Single governanceCatalog, access rule, lineage and audit apply the same in all three layers.
  6. QueryOne SQL engine reads the three layers and also the system left outside, without copying.
  7. Four uses, one doorBI reads the ready layer. SQL reads refined and ready. The notebook reads raw and refined. AI reads with the asker's rule.

The layers are a process.A pipeline takes the data from raw to refined to ready. Every run is recorded, task by task.

The rule is a single one.The catalog, the access rule, lineage and audit cover all three layers. BI, SQL and AI go through the same rule.

What is outside stays outside.Federated query reads the source where it is. Data that does not need to live in the lakehouse is not copied into it.

Raw. Refined.
Ready.

01 · Raw

Store it as it arrived.

The raw layer takes the data without fixing anything: the date in two formats, the repeated row, the empty field. It is the record of what the source sent. It is from here that you reprocess when a rule changes.

pedidos_bruto · 4 rows · as it arrived

02 · Refined

Clean once, for everyone.

The refined layer has type, key and format checked. The duplicate is dropped. The row that fails the rule goes to quarantine, with the reason. Each fix is made in one place only.

1 duplicate removed · 1 row in quarantine

03 · Ready

Model it for the question.

The ready layer answers the business question: revenue by state and by day. It is the one the dashboard and the AI assistant read. The math is already done, and it is the same for everyone.

receita_por_uf · 2 rows

04 · Reading

Each use reads its layer.

The dashboard reads the ready layer. The analyst goes down to refined when they need the detail. The audit goes back to raw to see what the source sent. The path between the three is recorded.

ready ← refined ← raw

05The principles

Six principles.
None is optional.

An architecture only deserves the name when all six hold at the same time. Remove one and what is left is a storehouse with another name.

The query

The query goes to the data

A single engine reads the three layers and the sources that stayed where they were. Joining two sources does not require copying either.

3 sources · 0 tables copied

One catalog with an address

Every table, from any source, shows up in the same catalog, with a three-part address. That is how the data is found and how access is requested.

catálogo.schema.tabela

The control

The rule decides at execution

Every access is a written rule: who, which data, until when. Column masking and row filtering apply to any tool that queries. Without a rule, the answer is no.

cpf → last 4 · region = 'BR'

Everything is written down

Lineage says who read and who wrote each table. The audit keeps every access decision in an append-only record.

data-access · denied

The use

The layers are a process

Raw, refined and ready are not three storehouses. They are stages of a pipeline with versions, schedules and a record of every run.

vendas_diario · 5 of 5 tasks

Every use on the same data

The dashboard, the SQL query, the notebook and the AI assistant read the same tables, each with the identity of whoever asks. Nobody exports a copy to work on.

dashboard · SQL · notebook · AI

06Federated query

Not every dataset
needs to move.

Federated query reads the source where it is and joins the result with what already lives in the lakehouse. It avoids the copy. It does not replace the ready layer.

Query it where it isfederate · the data does not move

  • The data changes all the time and the answer has to be the one from now.
  • The question is occasional: a check, an exploration, a new cross-reference.
  • The source has its own owner and rule, and copying would create a second rule to maintain.
  • The volume read is small compared with the size of the table.

Bring it into a layermaterialize · compute once and keep

  • The same math runs every day, for many people, and the result can be computed once.
  • The source cannot take the analytical query load without hurting operations.
  • You need to keep the history that the source deletes or overwrites.
  • The question crosses many sources and response time matters.

In both cases the access rule is the same, because it lives in the catalog, not in the copy.

07Common mistakes and evaluation

Where it goes wrong.
And what to ask.

The mistakes below are about design, not tools. The list of questions works to evaluate any solution, including ours.

Six common mistakes

  1. Calling the data lake a lakehouse

    Changing the name without a catalog, without layers and without an access rule does not change what you have.

  2. Skipping the refined layer

    From raw straight to the dashboard, each report redoes the cleaning its own way. Fixes multiply and disagree.

  3. Governing later

    The access rule that arrives after the data finds copies nobody knows the location of anymore.

  4. Copying out of habit

    Bringing every whole source inside, even the one that would be read once a month, recreates the problem the architecture came to solve.

  5. A catalog with no owner

    A table with no owner and no description is found, but nobody trusts it. The catalog is worth what people keep in it.

  6. One rule per tool

    If the dashboard applies the mask and the notebook does not, the rule does not exist. It has to sit below the tools.

Ten questions to evaluate0 of 10 checked

Tick what the solution being evaluated has already shown working, not what is in the sales material.

08Frequently asked questions

The usual
questions.

What usually comes up in the first conversation on the subject, answered without depending on a product.

Does the lakehouse replace the data warehouse?

It replaces the need to keep both. The ready layer plays the warehouse role: modeled tables, fast queries, trustworthy numbers. The difference is that it sits in the same catalog as the raw data, under the same rule.

Whoever already has a warehouse does not have to switch it off on day one. It can be read as one more source.

What is the difference from data mesh?

They answer different questions. Lakehouse is a technical architecture: where the data lives and how it is read. Data mesh is an organizational model: each area owns its data and publishes it as a product.

The two combine. A single catalog, with rules per owner, is what lets several areas publish in the same place.

Is federated query slow?

It depends on what you ask. It is good when it reads a little from a source that changes a lot. When the same heavy math runs every day, the right move is to compute once and keep it in the ready layer. A good architecture uses both and makes clear which is which.

Do I need to migrate everything at once?

No. The usual path starts with one subject: two or three sources, one business question and the three layers for it. The rest stays where it is and joins as a federated source, until it makes sense to bring it in.

Where does AI fit in?

As one more reader. An assistant or an agent queries the ready layer through the same door and with the same rule as the analyst. That is the gain for AI: it needs no copy of the data of its own, and no separate permission.

What about data that is not a table?

Files, like a targets spreadsheet, come in as a source and get an address in the catalog. What you extract from a document, like a field read from a contract, goes through the layers like any other data.

09From concept to product

Infinite Data

How NNumbers
puts it to work.

Infinite Data applies the architecture from the query and governance side: it joins the sources where they are, without copying, and decides at execution who sees what. The table below lists only what exists in the product today.

What the concept asks forWhat Infinite Data has

Federated query

QueryMesh

Federated SQL engine. It queries lakehouses, warehouses and transactional databases through a governed virtual catalog, without copying the data.

Completed · 500 rows · 412 ms

Catalog

DataAtlas

It lists the connectors, schemas and tables available for querying, each with its three-part address.

erp.vendas.pedidos

Access rule

TrustLayer

Every access is a Data Rule: who, which data, with what permission, until when and with which protections. By default, nothing is allowed. Column masking and row filtering apply at execution.

cpf → last 4 characters

Lineage and audit

Lineage

It answers who queried or wrote each table. The Audit keeps events and access decisions in an append-only record, exportable to NDJSON or CSV.

data-access · denied

From raw to ready

Pipelines

Runs, schedules and versions of the data pipelines, per environment. Each run shows the flow task by task, with state, duration and log. Rerunning starts again from the tasks that did not complete.

vendas_diario · Completed

Notebooks for whoever analyzes

NoteCore

A notebook workspace per user, isolated and persistent: restarting keeps the files. Every query goes out as the user themselves, with the same rules.

marina.sales workspace · live

The same data for AI

Imaginne and Agents

A possible integration, not a mandatory one. Imaginne queries Infinite Data with the permissions of whoever asks, and Agents uses QueryMesh as a tool in a flow.

vendas.pedidos · updated 4 min ago

Real product screen · sample data · three sources in one query, no copy, with TrustLayer masking

The query above reads each source where it is. When the same math has to run every day, a pipeline computes once and publishes the ready table.

Real product screen · sample data · a pipeline takes orders from raw to the ready table

A rule created or revoked takes effect in QueryMesh within about 60 s. Whoever has no rule gets a 403, which does not even confirm whether the table exists. The data does not have to move to get started: the sources you already have come in through the catalog. Infinite Data can be adopted on its own. With Ontology, Imaginne and Agents, the same data gains meaning, conversation and automation.

Explore Infinite Data

Bring two sources.
And a question.

We show the query that joins the two without a copy, the rule that decides who sees what and the record of what happened.

Talk to NNumbers