Pith. sign in

REVIEW 2 cited by

VeriEQL: Bounded Equivalence Verification for Complex SQL Queries with Integrity Constraints

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2403.03193 v2 pith:EETYSBEF submitted 2024-03-05 cs.PL cs.DB

classification cs.PLcs.DB
keywords verieqlcomplexqueriesconstraintsequivalenceintegrityquerybenchmarks
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

The task of SQL query equivalence checking is important in various real-world applications (including query rewriting and automated grading) that involve complex queries with integrity constraints; yet, state-of-the-art techniques are very limited in their capability of reasoning about complex features (e.g., those that involve sorting, case statement, rich integrity constraints, etc.) in real-life queries. To the best of our knowledge, we propose the first SMT-based approach and its implementation, VeriEQL, capable of proving and disproving bounded equivalence of complex SQL queries. VeriEQL is based on a new logical encoding that models query semantics over symbolic tuples using the theory of integers with uninterpreted functions. It is simple yet highly practical -- our comprehensive evaluation on over 20,000 benchmarks shows that VeriEQL outperforms all state-of-the-art techniques by more than one order of magnitude in terms of the number of benchmarks that can be proved or disproved. VeriEQL can also generate counterexamples that facilitate many downstream tasks (such as finding serious bugs in systems like MySQL and Apache Calcite).

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. SQL-RewriteBench: A Correctness-Gated, Full-Denominator Benchmark for Statement-Level SQL Rewriting [Experiment,Analysis & Benchmark]

    cs.DB 2026-07 conditional novelty 6.5 of 10

    A correctness-gated, full-denominator SQL rewrite benchmark finds that seven representative rewrite methods all deliver negative end-to-end optimization quality on 180 cases.

  2. Can the Rookies Cut the Tough Cookie? Exploring the Use of LLMs for SQL Equivalence Checking

    cs.DB 2024-12 conditional novelty 6.0 of 10

    LLMs, especially GPT-4, can classify SQL query equivalence on complex real-world assignment queries far beyond formal tools' coverage, but they systematically over-predict equivalence.

Pith tools