Pith. sign in

REVIEW 1 cited by

Learned Graph Rewriting with Equality Saturation: A New Paradigm in Relational Query Rewrite and Beyond

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 2407.12794 v1 pith:WW4GXCN2 submitted 2024-06-19 cs.DB cs.LG

classification cs.DBcs.LG
keywords querygraphrewriteequalityplansrewritingsaturationrelational
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Query rewrite systems perform graph substitutions using rewrite rules to generate optimal SQL query plans. Rewriting logical and physical relational query plans is proven to be an NP-hard sequential decision-making problem with a search space exponential in the number of rewrite rules. In this paper, we address the query rewrite problem by interleaving Equality Saturation and Graph Reinforcement Learning (RL). The proposed system, Aurora, rewrites relational queries by guiding Equality Saturation, a method from compiler literature to perform non-destructive graph rewriting, with a novel RL agent that embeds both the spatial structure of the query graph as well as the temporal dimension associated with the sequential construction of query plans. Our results show Graph Reinforcement Learning for non-destructive graph rewriting yields SQL plans orders of magnitude faster than existing equality saturation solvers, while also achieving competitive results against mainstream query optimisers.

Discussion (0). Sign in to comment.

Forward citations

Cited by 1 Pith paper

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

  1. A Learned Cost Model-based Cross-engine Optimizer for SQL Workloads

    cs.DB 2025-06 conditional novelty 5.0 of 10

    A multi-head learned cost model with a shared graph-neural-network embedding routes SQL queries to the fastest engine in a lakehouse, using Calcite-optimized logical plans as inputs.

Pith tools