Skip to main content

RATest: Explaining Wrong Relational Queries Using Small Examples.

Publication ,  Conference
Miao, Z; Roy, S; Yang, J
Published in: Proceedings. ACM-SIGMOD International Conference on Management of Data
June 2019

We present a system called RATEST, designed to help debug relational queries against reference queries and test database instances. In many applications, e.g., classroom learning and regression testing, we test the correctness of a user query Q by evaluating it over a test database instance D and comparing its result with that of evaluating a reference (correct) query Q0 over D. If Q(D) differs from Q0(D), the user knows Q is incorrect. However, D can be large (often by design), which makes debugging Q difficult. The key idea behind RATEST is to show the user a much smaller database instance D' ⊆ D, which we call a counterexample, such that Q(D') ≠ Q0(D'). RATEST builds on data provenance and constraint solving, and employs a suite of techniques to support, at interactive speed, complex queries involving differences and group-by aggregation. We demonstrate an application of RATEST in learning: it has been used successfully by a large undergraduate database course in a university to help students with a relational algebra assignment.

Duke Scholars

Altmetric Attention Stats
Dimensions Citation Stats

Published In

Proceedings. ACM-SIGMOD International Conference on Management of Data

DOI

ISSN

0730-8078

Publication Date

June 2019

Volume

2019

Start / End Page

1961 / 1964
 

Citation

APA
Chicago
ICMJE
MLA
NLM
Miao, Z., Roy, S., & Yang, J. (2019). RATest: Explaining Wrong Relational Queries Using Small Examples. In Proceedings. ACM-SIGMOD International Conference on Management of Data (Vol. 2019, pp. 1961–1964). https://doi.org/10.1145/3299869.3320236
Miao, Zhengjie, Sudeepa Roy, and Jun Yang. “RATest: Explaining Wrong Relational Queries Using Small Examples.” In Proceedings. ACM-SIGMOD International Conference on Management of Data, 2019:1961–64, 2019. https://doi.org/10.1145/3299869.3320236.
Miao Z, Roy S, Yang J. RATest: Explaining Wrong Relational Queries Using Small Examples. In: Proceedings ACM-SIGMOD International Conference on Management of Data. 2019. p. 1961–4.
Miao, Zhengjie, et al. “RATest: Explaining Wrong Relational Queries Using Small Examples.Proceedings. ACM-SIGMOD International Conference on Management of Data, vol. 2019, 2019, pp. 1961–64. Epmc, doi:10.1145/3299869.3320236.
Miao Z, Roy S, Yang J. RATest: Explaining Wrong Relational Queries Using Small Examples. Proceedings ACM-SIGMOD International Conference on Management of Data. 2019. p. 1961–1964.

Published In

Proceedings. ACM-SIGMOD International Conference on Management of Data

DOI

ISSN

0730-8078

Publication Date

June 2019

Volume

2019

Start / End Page

1961 / 1964