Source author record

Wensheng Dou

Explore this author’s publications, collaborators and research topics. This catalog record has not been claimed by its author.

ResearcherUnclaimed source record

Catalog footprint

Research overview

1works
4topics
4close collaborators

Published work

1 publications

preprint2026arXiv

RISE: Rule-Driven SQL Dialect Translation via Query Reduction

Translating SQL dialects across different relational database management systems (RDBMSs) is crucial for migrating RDBMS-based applications to the cloud. Traditional SQL dialect translation tools rely on manually-crafted rules, necessitating significant manual effort to support new RDBMSs and dialects. Although large language models (LLMs) can assist in translating SQL dialects, they often struggle with lengthy and complex SQL queries. In this paper, we propose RISE, a novel LLM-based SQL dialect translation approach that can accurately handle lengthy and complex SQL queries. Given a complex source query QcQ_c that contains a SQL dialect dd, we first employ a dialect-aware query reduction technique to derive a simplified query QsQ_{s} by removing dd-irrelevant SQL elements from QcQ_c. Subsequently, we utilize LLMs to translate QsQ_{s} into Qs′Q_{s^{'}}, and automatically extract the translation rule rdr_d for dialect dd based on the relationship between QsQ_{s} and Qs′Q_{s^{'}}. By applying rdr_d to QcQ_c, we can effectively translate the dialect dd within QcQ_c, thereby bypassing the complexity of the source query QcQ_c. We evaluate RISE on two real-world benchmarks, i.e., TPC-DS and SQLProcBench, comparing its performance against both the traditional rule-based tools and the LLM-based approaches with respect to translation accuracy. RISE achieves accuracies of 97.98% on TPC-DS and 100% on SQLProcBench, outperforming the baselines by an average improvement of 24.62% and 238.41%, respectively.

Research graph

See the researcher in context

Open full explorer

Inspect adjacent papers, topics, institutions and collaborators without losing the researcher page.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.