The Data Civilizer System

Dong Deng, Raul Castro Fernandez, Ziawasch Abedjan, Sibo Wang, Michael Stonebraker, Ahmed K. Elmagarmid, Ihab F. Ilyas, Samuel Madden, Mourad Ouzzani, Nan Tang

Abstract

Data Civilizer is an end-to-end system designed to automate the labor-intensive tasks of data discovery, linkage, and cleaning in large-scale enterprise environments. By integrating these processes directly into a polystore query engine, the system enables researchers to navigate thousands of siloed databases and produce analysis-ready results with significantly reduced manual effort.

Introduction

In modern data science, practitioners often spend roughly 80% of their time finding, preparing, and cleaning data, leaving only 20% for actual analysis. In large organizations such as Merck or MIT, data is frequently "in the wild"—scattered across thousands of disparate databases, inconsistent in format, and riddled with errors. Existing tools typically offer point solutions for specific tasks like schema mapping or cleaning, but they lack a unified pipeline. Data Civilizer addresses this gap by providing a system that can discover relevant tables across silos, link them, and clean the resulting joins without requiring a centralized data warehouse.

System Architecture

The Data Civilizer architecture is divided into offline and online components, coordinated through a workflow orchestrator and integrated with the BigDAWG polystore engine.

The Data Civilizer system architecture, illustrating the interaction between offline profiling and online discovery and cleaning modules.

Offline Components

The system's "brain" is the Linkage Graph. During the offline phase, a Data Profiler summarizes columns into signatures (e.g., histograms for numerical data, word vectors for text). A Graph Builder then identifies relationships using Locality Sensitive Hashing (LSH) for similarity and more intensive methods for Primary Key-Foreign Key links. To handle "dirty" data where keys may not match perfectly, the system employs error-robust inclusion dependency detection, combining text similarity and key coverage metrics refined by machine learning.

Online Components

The online phase facilitates user interaction through several modules:

  • Data Discovery: Users can traverse the Linkage Graph to find relevant datasets.
  • Join Path Selection: The system identifies potential paths to link disparate tables.
  • On-Demand Data Cleaning: Cleaning is treated as a first-class citizen in the query planning process. Instead of just optimizing for speed, the system evaluates paths based on Cleanliness Models, estimating error probabilities (e.g., outliers, duplicates) and allowing users to trade off a "cleaning budget" against desired quality.
  • Polystore Querying: The system utilizes the BigDAWG polystore to federate queries across native storage engines (SQL, NoSQL, etc.) without data migration.

Evaluation

The system was evaluated through real-world deployments at two major institutions:

  • MIT Data Warehouse: Managing ~1TB of data across 3,000 tables. Data Civilizer helped administrators generate complex reports and identify redundant tables.
  • Merck: Managing ~4,000 Oracle databases and various data lakes. Bioinformaticians used the system to enrich internal chemical data by linking it to external public databases like PubChem and ChEMBL.

Preliminary results indicate that the system significantly reduces the time and effort required for data preparation, although the exact speedup depends on the complexity of the specific task.

Discussion and Future Work

A key insight of Data Civilizer is the integration of cleaning into query optimization, treating it as an operator that can be budgeted. By pre-computing relationships in a Linkage Graph, discovery becomes a graph traversal problem rather than a manual search.

However, as an initial prototype, several challenges remain. Full integration with the polystore engine is ongoing. Future work will focus on handling "data in motion" through incremental graph updates and implementing more sophisticated provenance management to track data lineage at the cell level.

Summary updated

BibTeX
@inproceedings{deng2017data,
  author = {Dong Deng and Raul Castro Fernandez and Ziawasch Abedjan and Sibo Wang and Michael Stonebraker and Ahmed K. Elmagarmid and Ihab F. Ilyas and Samuel Madden and Mourad Ouzzani and Nan Tang},
  title = {{The Data Civilizer System}},
  booktitle = {CIDR},
  year = {2017},
}
Figure