Skip to main content

I-Rex: An Interactive Relational Query Explainer for SQL

Publication ,  Journal Article
Miao, Z; Chen, T; Bendeck, A; Day, K; Roy, S; Yang, J
Published in: Proceedings of the VLDB Endowment
January 1, 2020

We demonstrate I-REX1, a system designed to help users understand SQL query evaluation and debug SQL queries. I-REX lets users interactively “trace” the evaluation of complex SQL queries, including those with correlated subqueries. I-REX also explains why a query returns an incorrect answer with respect to a reference query over a test database instance—a common use case in education and software regression testing. To avoid the cognitive overload caused by debugging over a large database instance, I-REX lets users focus on smaller instances contained in the large one (which we call “counterexamples”) that still distinguish the two queries. Supporting these features for SQL queries poses two key challenges. First, unlike debugging for procedural languages, it is not clear how to trace a declarative SQL query, because its execution plan often differs from how it was originally written. I-REX offers a novel interface for tracing SQL query evaluation in a way faithful to how queries are written syntactically, even for complex queries involving multiple levels of nesting and correlation. Second, we need a method for finding small counterexamples that handles the complexity of practical SQL. I-REX extends provenance support for SQL in non-trivial ways to work with various query constructs. This demonstration walks through use cases in which I-REX helps users understand and debug SQL queries.

Duke Scholars

Published In

Proceedings of the VLDB Endowment

DOI

EISSN

2150-8097

Publication Date

January 1, 2020

Volume

13

Issue

12

Start / End Page

2997 / 3000

Related Subject Headings

  • 4605 Data management and data science
  • 0807 Library and Information Studies
  • 0806 Information Systems
  • 0802 Computation Theory and Mathematics
 

Citation

APA
Chicago
ICMJE
MLA
NLM
Miao, Z., Chen, T., Bendeck, A., Day, K., Roy, S., & Yang, J. (2020). I-Rex: An Interactive Relational Query Explainer for SQL. Proceedings of the VLDB Endowment, 13(12), 2997–3000. https://doi.org/10.14778/3415478.3415528
Miao, Z., T. Chen, A. Bendeck, K. Day, S. Roy, and J. Yang. “I-Rex: An Interactive Relational Query Explainer for SQL.” Proceedings of the VLDB Endowment 13, no. 12 (January 1, 2020): 2997–3000. https://doi.org/10.14778/3415478.3415528.
Miao Z, Chen T, Bendeck A, Day K, Roy S, Yang J. I-Rex: An Interactive Relational Query Explainer for SQL. Proceedings of the VLDB Endowment. 2020 Jan 1;13(12):2997–3000.
Miao, Z., et al. “I-Rex: An Interactive Relational Query Explainer for SQL.” Proceedings of the VLDB Endowment, vol. 13, no. 12, Jan. 2020, pp. 2997–3000. Scopus, doi:10.14778/3415478.3415528.
Miao Z, Chen T, Bendeck A, Day K, Roy S, Yang J. I-Rex: An Interactive Relational Query Explainer for SQL. Proceedings of the VLDB Endowment. 2020 Jan 1;13(12):2997–3000.

Published In

Proceedings of the VLDB Endowment

DOI

EISSN

2150-8097

Publication Date

January 1, 2020

Volume

13

Issue

12

Start / End Page

2997 / 3000

Related Subject Headings

  • 4605 Data management and data science
  • 0807 Library and Information Studies
  • 0806 Information Systems
  • 0802 Computation Theory and Mathematics