True language-level SQL debugging

  • Authors:
  • Torsten Grust;Fabian Kliebhan;Jan Rittinger;Tom Schreiber

  • Affiliations:
  • WSI, Universität Tübingen, Tübingen, Germany;WSI, Universität Tübingen, Tübingen, Germany;WSI, Universität Tübingen, Tübingen, Germany;WSI, Universität Tübingen, Tübingen, Germany

  • Venue:
  • Proceedings of the 14th International Conference on Extending Database Technology
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

We demonstrate Habitat, a declarative observational debugger for SQL. Habitat facilitates true language-level (not: plan-level) debugging of, probably flawed, SQL queries that yield unexpected results. Users may mark arbitrary SQL subexpressions---ranging from literals, over fragments of predicates, to entire subquery blocks---to observe whether these evaluate as expected. From the marked SQL text, Habitat's algebraic compiler derives a new query whose result represents the values of the desired observations. These observations are generated by the target SQL database host itself. Prior data extraction or extra debugging middleware is not required. Habitat merges multiple observations into a single (nested) tabular display, letting a user explore the relationship of various observations. Filter predicates furthermore ease the interpretation of large results.