Skip to main content

Understanding Your Lakehouse Data

How data is stored in the Lakehouse: Delta tables, schemas, clustering, schema handling, and history.

Overview​

The Lakehouse is the central data storage in Insight Factory, built on Delta Lake. This guide covers:

  • Delta table structure, and the two table generations
  • Schema organisation
  • Clustering and partitioning
  • How the table structure changes as your source changes
  • Time travel

Prerequisites​

Understanding Delta tables​

What is a Delta table?​

Delta tables are the storage format used in the Insight Factory Lakehouse. They provide:

  • ACID transactions: Reliable data updates with full consistency
  • Schema validation: Data is checked against the table's structure on write
  • Time travel: Access historical versions of your data
  • Efficient updates: Support for merge, update, and delete operations

Delta table structure​

Each Delta table consists of:

  1. Data files: Parquet files containing the actual data
  2. Transaction log: A record of all changes to the table
  3. Metadata: Information about schema, clustering, and configuration

Table generations​

Insight Factory creates tables in two generations, v1 and v2. Tables created by older releases are v1; new tables are created as v2, with a _if_metadata column, name-based column mapping, type widening, deletion vectors and row tracking. Existing v1 tables are not converted automatically, so a Lakehouse can hold both.

The generation affects how column names are derived on ingestion, which is a common cause of the same task producing different column names in two environments. See v1 and v2 Lakehouse Tables.

Schema organisation​

Schemas in the Lakehouse​

Insight Factory reserves schemas for the file tiers — by default _raw, _history and _staging. These hold volumes of ingested files rather than Delta tables, and are managed by the platform.

Your Delta tables live in schemas you name yourself on each task. Common patterns are a schema for cleaned and transformed data and a schema for data ready for consumption.

Naming conventions​

When configuring ingestion Tasks, you'll specify:

  • Schema name: The logical grouping for your table
  • Table name: The specific table within the schema

Clustering and partitioning​

Liquid clustering​

Most v2 tables use liquid clustering. Where the task defines a business key, the table is clustered by it. Otherwise, where predictive optimisation is enabled on the catalog, the table is created with CLUSTER BY AUTO and Databricks chooses the clustering columns from query patterns. A table with neither a business key nor predictive optimisation on its catalog is created without clustering.

Clustering needs no maintenance from you and does not constrain how data is written. You can override the clustering columns per table — see Liquid Clustering Columns.

Partitioning​

A table is partitioned when Lakehouse Table Update Type is the partition-replace type (replace_partition). Partitioning divides a table into directories by column value, most often by date, and this update type rewrites only the partitions present in the incoming data instead of the whole table.

Two properties define it, both on the Convert … into a Lakehouse table task:

  • Lakehouse Table Partition Column List — the ordered list of columns forming the partitioning strategy. It is required for the partition-replace update type and ignored by every other one.
  • Partition Depth To Replace — how many of those columns, counting from the first, are used to identify the partitions to replace. It cannot exceed the number of columns in the list, and defaults to 1 where the list holds a single column.

Partitioning and liquid clustering are mutually exclusive. Delta does not allow both on the same table, so a partitioned table is never clustered, and no other update type is partitioned.

Prefer clustering unless you need to replace partitions.

How the table structure changes​

On each run, the structure of the incoming data is compared with the structure of the target table:

  • Columns present in the source but not in the table are added to the table.
  • Columns present in the table but not in the source are dropped, but only on the replace update type (replace). Every other update type leaves them in place, no longer populated.

Column name and data type changes are not inferred. Declare them on the Convert … into a Lakehouse table task using Schema Enforcement Column List, which renames or casts source columns before the table is updated, and can define generated and identity columns. It matches on the raw source column name, so the same configuration works whatever generation the target table is. Use it whenever you want a column name or type to be explicit rather than derived from the source — see Making column names independent of the generation.

Time travel​

Every write creates a new table version. To see them:

DESCRIBE HISTORY <catalog>.<schema>.<table>;

To read an earlier version:

SELECT * FROM <catalog>.<schema>.<table> VERSION AS OF 42;
SELECT * FROM <catalog>.<schema>.<table> TIMESTAMP AS OF '2026-01-31';

How far back you can read depends on the table's log retention and on when files were last vacuumed. Versions whose data files have been removed are no longer readable.

Key concepts​

TermDefinition
Delta tableA data storage format providing ACID transactions and schema validation
SchemaA logical grouping of related tables
Table generationWhether a table is v1 or v2, which determines its Delta features and how column names are derived
Liquid clusteringDatabricks-managed data layout, applied to most v2 tables. Never applied to a partitioned table
PartitioningDividing data into directories by column value, required for the partition-replace update type
Time travelThe ability to query historical versions of data