โ05-16-2026 10:11 AM
so am performing incremental load where i want to insert or update data but there are no date columns or any keys how can i do the incremental load from silver to gold layer
โ05-16-2026 11:11 PM
@Dolly0503 The correct approach is to have a key identifier to match and merge the records. You could also do a full load (expensive but works). Databricks official recommendation is Delta Change Data Feed.
โ05-17-2026 01:29 AM
You can follow below
โ05-27-2026 01:00 AM
@Dolly0503 Watermark doesn't need a date column from silver/gold. You can use pipeline run timestamp as the watermark โ tracking when the pipeline last ran, not when data was modified. Also you can use Delta table version history within watermark as no date column will be needed .
Second , you can use Delta Change Data Feed - best for no date column and row level changes .
โ06-22-2026 04:45 AM
The short answer is yes, but with an important condition.
Delta Lake's versioning and Change Data Feed make keyless incremental loads possible by tracking changes at the storage layer rather than the data layer. Every write to a Delta table increments a version number, and CDF exposes metadata columns - _change_type, _commit_version, and _commit_timestamp - on every row that changed in that commit. You read from the last processed version and get exactly what changed, without needing any business key or date column in your actual data.
Structured Streaming takes this further for append-only silver tables - it tracks which files have already been consumed via a checkpoint directory, so the engine handles the incremental logic entirely at the file level. Again, nothing from the data itself is required.
Where it breaks down is upserts. Merging into gold requires something to match on. Without a key, you cannot reliably identify that a row arriving in silver is an updated version of an existing row in gold - you can only know that something changed, not what it corresponds to. In that case, incremental append is still solvable, but a true upsert leaves you with two real options: synthesise a key by hashing all columns and accept that you are tracking row snapshots rather than entities or fall back to a full reload of the affected partition.
So, the boundary to understand before choosing an approach is this - incremental detection without keys is solved by Delta itself. Incremental merge without keys is a data modelling problem, not a platform problem.
8 hours ago
If Gold represents a query over the current Silver data, a materialized view is another option worth considering.
You do not need to invent a business key just to maintain the result of a supported materialized-view query. Databricks manages the refresh and may process changes incrementally when the query and source qualify.
For example, assuming Silver contains category and amount:
CREATE MATERIALIZED VIEW gold.sales_by_category AS
SELECT
category,
COUNT(*) AS record_count,
SUM(amount) AS total_amount
FROM silver.sales
GROUP BY category;
REFRESH MATERIALIZED VIEW gold.sales_by_category;
Replace the illustrative table and column names with your own.
This avoids writing a custom MERGE for an aggregate Gold table. Updates and deletes in Silver are reflected when the materialized view refreshes. Incremental refresh is not guaranteed, so check the actual refresh plan and cost.
For a row-level Gold table that you maintain with MERGE, you still need a stable way to identify which existing row an update replaces.
Two distinctions matter:
- Hashing every column identifies a row version. When an amount changes, the hash changes too, so it cannot identify the old row for an update.
- A pipeline execution timestamp records when your job ran. By itself, it cannot identify which source rows changed.
CDF helps detect inserts, updates and deletes without a source date column, but you still need suitable logic to apply those changes to your target.
I would choose a materialized view for current-state reporting, append streaming for a strictly append-only source and a stable business key for entity-level upserts. Keep separate history if Gold must retain records that Silver removes.
Official references:
https://docs.databricks.com/aws/en/sql/mv-st/materialized
https://docs.databricks.com/aws/en/structured-streaming/delta-lake