Lune

ICSE2026顶会

RISE: Rule-Driven SQL Dialect Translation via Query Reduction

Xudong Xie, Yuwei Zhang, Wensheng Dou, Yu Gao, Ziyu Cui, Jiansen Song, Rui Yang, Jun Wei

2026年份

摘要

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 𝑄 𝑐 that contains a SQL dialect 𝑑, we first employ a dialect-aware query reduction technique to derive a simplified query 𝑄 𝑠 by removing 𝑑-irrelevant SQL elements from 𝑄 𝑐 . Subsequently, we utilize LLMs to translate 𝑄 𝑠 into 𝑄 𝑠 ′ , and automatically extract the translation rule 𝑟 𝑑 for dialect 𝑑 based on the relationship between 𝑄 𝑠 and 𝑄 𝑠 ′ . By applying 𝑟 𝑑 to 𝑄 𝑐 , we can effectively translate the dialect 𝑑 within 𝑄 𝑐 , thereby bypassing the complexity of the source query 𝑄 𝑐 . 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.

问问这篇 Paper

智能体会读完全文。

Lune 把这篇 Paper 索引到了最后一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。

可以从这些问题问起

智能体调用

Luneget_paper_fulltext

在 Lune 里问

免费开始,无需绑卡

lune papers fulltext cb3bb1d0-a8a4-41eb-931a-7955e34ae6df

它引用的顶会 Paper8

相关 Paper

黄昏的海面,两侧是细线勾勒的悬崖