Towards Dialect-Agnostic Query Parsing and Rewriting

Abstract

SQL query rewriting is a core technique used in applications such as optimization, dialect translation, and testing, yet most existing tools remain restricted by dialect-specific parsers. We present SQLFlex, a novel framework that combines grammar-based parsing with LLM-powered segmentation to enable dialect-agnostic query rewriting. Our experiments across ten SQL dialects show that SQLFlex achieves higher correctness and broader applicability than prior tools in tasks including linting, test case reduction, and mutation testing.

Date
Apr 30, 2025 2:00 PM — 2:25 PM
Event
Weekly Talk
Location
MR25 @ COM3-02-70
Junwen An
Junwen An
Ph.D. Student

Junwen An is a Ph.D. student.