paper-with-me

홈 › Papers

RISE: Rule-Driven SQL Dialect Translation via Query Reduction

2026-01-09 · Xudong Xie, Yuwei Zhang, Wensheng Dou, Yu Gao, Ziyu Cui, Jiansen Song, Rui Yang, Jun Wei arxiv

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 $Q_c$ that contains a SQL dialect $d$, we first employ a dialect-aware query reduction technique to derive a simplified query $Q_{s}$ by removing $d$-irrelevant SQL elements from $Q_c$. Subsequently, we utilize LLMs to translate $Q_{s}$ into $Q_{s^{'}}$, and automatically extract the translation rule $r_d$ for dialect $d$ based on the relationship between $Q_{s}$ and $Q_{s^{'}}$. By applying $r_d$ to $Q_c$, we can effectively translate the dialect $d$ within $Q_c$, thereby bypassing the complexity of the source query $Q_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.

📄 PDF Abstract BibTeX arXiv:2601.05579

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Dial: A Knowledge-Grounded Dialect-Specific NL2SQL System

2026-03-08 · Xiang Zhang, Hongming Xu, Le Zhou, Wei Zhou 외 arxiv

Enterprises commonly deploy heterogeneous database systems, each of which owns a distinct SQL dialect with different syntax rules, built-in functions, and execution constraints. However, most existing NL2SQL methods assu…

CrackSQL: A Hybrid SQL Dialect Translation System Powered by Large Language Models

2025-04-01 · Wei Zhou, Yuyang Gao, Xuanhe Zhou, Guoliang Li

Dialect translation plays a key role in enabling seamless interaction across heterogeneous database systems. However, translating SQL queries between different dialects (e.g., from PostgreSQL to MySQL) remains a challeng…

Large Language ModelTranslation

Automatic Standardization of Arabic Dialects for Machine Translation

2023-01-09 · Abidrabbo Alnassan

Based on an annotated multimedia corpus, television series Mar{\=a}y{\=a} 2013, we dig into the question of ''automatic standardization'' of Arabic dialects for machine translation. Here we distinguish between rule-based…

Machine TranslationTranslation

Translating Dialectal Arabic as Low Resource Language using Word Embedding

2017-09-01 · RANLP 2017 9 · Ebtesam H Almansor, Ahmed Al-Ani

A number of machine translation methods have been proposed in recent years to deal with the increasingly important problem of automatic translation between texts of different languages or languages and their dialects. Th…

Machine TranslationSentiment AnalysisText GenerationTranslation+1

Comparing Pipelined and Integrated Approaches to Dialectal Arabic Neural Machine Translation

2019-06-01 · WS 2019 6 · Pamela Shapiro, Kevin Duh

When translating diglossic languages such as Arabic, situations may arise where we would like to translate a text but do not know which dialect it is. A traditional approach to this problem is to design dialect identific…

Dialect IdentificationMachine TranslationTranslation