Skip to content

Apache Iceberg

Module: lake-rustfs serves the catalog and stores the files; Trino reads and writes the tables.

Apache Iceberg is an open format for large analytic tables kept as files in object storage. A table is a set of ParquetParquet A compressed, fast-to-read file format for large tables. data files plus metadata that says which files make up each version of the table. Every write creates a new snapshot, committed all at once: a reader sees the table before the write or after it, never half of it, and can read an earlier snapshot on purpose.

The Iceberg REST catalog is the service that lists the tables and points at their current metadata. In Government Data it is served by RustFS itself, over HTTPSHypertext Transfer Protocol Secure The secure web protocol: the product is reached over it, with the certificate the installer makes. behind the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources.’s gate.

Each installation has one warehouse in the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources., with three layers:

Layer Holds Written by
Bronze The data of each cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. as copied from the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. Extraction jobs
Silver The same data with the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. applied Derivation jobs, from bronze
Gold The quality results: per ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version., per field, per group, the findingsFinding A record that fails a rule at a cut. It is resolved when a later cut no longer fails it. and the data each chart draws Rule jobs, from silver
  • Bronze and silver only grow. A load adds rows under its own identifier; only once every statement succeeded and the counts match does the core record it as the cut’s accepted load. Readers then read exactly that load, at that snapshot, so a cut always gives the same results.
  • Gold is the system of record of the quality results. Every table carries the dataset, the cut and the run. A new run of a cut writes its rows, then switches to them in one commit, then deletes the previous run’s rows; dashboardsDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. read views that always show one whole run.
  • No record values in gold, except the values of the grouping fieldsGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by. the indicators are broken down by, such as an office or a region. Findings carry keyed hashes of the record keysRecord key The field or fields of a dataset's mapping that tell one record from another., not the keys.

Bronze and silver hold copies of the source data, which may include personal dataPersonal data Values from a source about a person. They are shown whole only to policies that allow View personal data, such as quality-analyst; anyone else sees them masked, and every whole view is recorded in the audit trail.. Nobody reads them directly: only jobs, through Trino, with the access their token grants.

With How
Trino The Iceberg REST protocol for the catalog; S3Simple Storage Service Amazon's interface for storing files, which many storage systems (RustFS among them) also offer. for the files
Superset Never directly: it reads gold’s views through Trino
The core Never directly: it records what each job reports

In the lakeLake Quality Data's own store, where it keeps the cuts it copies from the sources., on RustFS: the data files, the metadata and the catalog. Maintenance jobs compact small files and remove superseded loads; old snapshots are kept, so a past cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. can always be read as it was. The lake’s replica keeps a copy of everything.

Government Data · Guide v0.8.1