Abstract
Vagabond is a holistic debugging system designed to help users identify and fix errors in data exchange scenarios. Unlike previous tools that merely provide data provenance, Vagabond automatically generates and ranks potential explanations for errors—such as incorrect source data or flawed schema mappings—allowing even non-expert users to debug complex data transformations through an intuitive interface.
Introduction
Data exchange is the process of moving and transforming data from a source schema to a target schema. It is a complex, multi-step workflow involving the identification of correspondences between attributes, the creation of declarative schema mappings, and the generation of executable code (like SQL or XSLT).
Because this process is so intricate, errors are common but often only become visible in the final target instance (e.g., a name is missing or a city is incorrect). Currently, debugging these errors is a manual, labor-intensive task that requires "power users" to understand provenance and trace logic back through several layers of abstraction. There is a significant usability gap: users can easily see that a value is wrong, but they struggle to figure out why it is wrong.
Methodology
Vagabond bridges this gap by shifting the burden of explanation from the user to the system. Its core methodology focuses on treating data, schema correspondences, and transformations as a single, interconnected system.
Explanation Generation and Ranking
When a user marks a target value as incorrect, Vagabond explores a search space of potential causes, including:
- Source Copy Errors: Bad data at the source.
- Source Join Value Errors: Incorrect keys causing bad joins.
- Correspondence Errors: Wrong attribute links.
- Mapping Errors: Superfluous or structurally incorrect mappings.
The system builds on TRAMP, an extended DBMS that provides "Copy-CS" provenance, allowing Vagabond to trace exactly which source tuples and mapping elements contributed to a specific target value. To manage multiple potential explanations, Vagabond ranks them by "side-effects"—the set of target values that would change if a specific explanation were true. It operates on the principle that the most likely explanation is often the one with the fewest side-effects on data the user hasn't marked as an error.
Interactive GUI
The system provides a visual interface where users can mark errors, browse ranked explanations, and see affected data and mappings highlighted in real-time. This interface effectively automates the "detective work" usually required of database administrators.
Key Insights and Results
The paper demonstrates the system using a custom scenario involving data about homeless people, mapping a source schema ("FeedThePoor") to a target "Government Survey" schema.
- Verification vs. Generation: While inexperienced users struggle to generate technical explanations for errors, they can easily recognize incorrect data. Vagabond flips the workflow: the system generates hypotheses, and the user simply verifies them.
- Automated Diagnostics: The system successfully identifies and categorizes five distinct types of errors frequently found in data exchange. In testing, Vagabond was able to rank the "correct" explanation (a source join value error) at the top of the list based on its side-effect analysis.
- Global Impact Visualization: By showing the "collateral damage" of a potential fix, the system helps users understand the global impact of a local change. If an explanation fixes one error but deletes hundreds of correct rows, the user can quickly dismiss it.
Limitations and Future Work
While effective, the current ranking system is primarily based on side-effect size and a fixed hierarchy of error types. More sophisticated ranking methods may be needed for very large, complex schemata. Additionally, while the system handles standard SQL-based mappings, future work could extend these debugging techniques to more complex procedural transformations and explore the computational overhead of generating explanations in scenarios with thousands of mappings.
Summary updated