Raw
Exactly what the source sent, with when it was loaded and which file or request it came from.
Keep an untouched copy of what each source sent, apart from the cleaned version, so you can explain any figure and fix mistakes by reprocessing.
Many pipelines clean data as they load it: trimming codes, fixing dates, merging duplicates. If only the result is stored, nobody can tell what the source originally said. When a cleansing rule turns out to be wrong, the original data is gone and has to be extracted again, if the source still holds it. And when finance asks why a total changed, there’s nothing to show them.
Exactly what the source sent, with when it was loaded and which file or request it came from.
Types fixed, codes standardised, and invalid records set aside as rejects.
Facts and dimensions shaped for reporting, built only from cleansed data.
Step 1 of 4
Store each extract as received, even the fields you don’t use yet.
Corrections happen in the cleansing step, so the original is always available.
Build the cleansed layer so it can be rebuilt from raw at any time.
Set a retention period that suits auditing and your data protection rules.
Because the raw layer keeps everything, it often holds the most personal data. Limit access to the few people who need it, apply the agreed retention period automatically, and make sure a request to delete someone’s data reaches the raw layer too, not just the reports. For example: drop customer contact fields at landing if no report will ever need them.
Tell us how your data is loaded and cleaned today. A few lines are enough.