paper-with-me

홈 › Papers

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 challenging task due to syntactic discrepancies and subtle semantic variations. Existing approaches including manual rewriting, rule-based systems, and large language model (LLM)-based techniques often involve high maintenance effort (e.g., crafting custom translation rules) or produce unreliable results (e.g., LLM generates non-existent functions), especially when handling complex queries. In this demonstration, we present CrackSQL, the first hybrid SQL dialect translation system that combines rule and LLM-based methods to overcome these limitations. CrackSQL leverages the adaptability of LLMs to minimize manual intervention, while enhancing translation accuracy by segmenting lengthy complex SQL via functionality-based query processing. To further improve robustness, it incorporates a novel cross-dialect syntax embedding model for precise syntax alignment, as well as an adaptive local-to-global translation strategy that effectively resolves interdependent query operations. CrackSQL supports three translation modes and offers multiple deployment and access options including a web console interface, a PyPI package, and a command-line prompt, facilitating adoption across a variety of real-world use cases

📄 PDF Abstract BibTeX arXiv:2504.00882

Code (1)

weaidb/cracksql 공식 구현

Tasks

Large Language ModelTranslation

Similar Papers 제목 키워드 기반

Multi-Lingual Phrase-Based Statistical Machine Translation for Arabic-English

2017-09-01 · RANLP 2017 9 · Ahmed Bastawisy, Mohamed Elmahdy

In this paper, we implement a multilingual Statistical Machine Translation (SMT) system for Arabic-English Translation. Arabic Text can be categorized into standard and dialectal Arabic. These two forms of Arabic differ …

Machine TranslationTranslation

Dialectal Speech Recognition and Translation of Swiss German Speech to Standard German Text: Microsoft's Submission to SwissText 2021

2021-06-15 · Yuriy Arabskyy, Aashish Agarwal, Subhadeep Dey, Oscar Koller

This paper describes the winning approach in the Shared Task 3 at SwissText 2021 on Swiss German Speech to Standard German Text, a public competition on dialect recognition and translation. Swiss German refers to the mul…

Automatic Speech RecognitionAutomatic Speech Recognition (ASR)Language ModelingLanguage Modelling+3

UniQL: Towards Dialect-Universal Benchmarking for Text-to-SQL

2026-06-06 · Jianling Gao, Chongyang Tao, Jiayuan Bai, Liu Yang 외 arxiv

Existing text-to-SQL benchmarks are largely centered on SQLite, making it difficult to evaluate whether models can generalize across heterogeneous SQL dialects. However, real-world database systems differ substantially i…

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

INDIC DIALECT: A Multi Task Benchmark to Evaluate and Translate in Indian Language Dialects

2026-01-15 · Tarun Sharma, Manikandan Ravikiran, Sourava Kumar Behera, Pramit Bhattacharya 외 arxiv

Recent NLP advances focus primarily on standardized languages, leaving most low-resource dialects under-served especially in Indian scenarios. In India, the issue is particularly important: despite Hindi being the third …

Machine Translation