paper-with-me

Papers

Beyond Text-to-SQL: Can LLMs Really Debug Enterprise ETL SQL?

2026-01-26 · Jing Ye, Yiwen Duan, Yonghong Yu, Victor Ma, Yang Gao, Xing Chen arxiv

SQL is central to enterprise data engineering, yet generating fully correct SQL code in a single attempt remains difficult, even for experienced developers and advanced text-to-SQL LLMs, often requiring multiple debugging iterations. We introduce OurBench, the first benchmark for enterprise-level SQL reasoning and debugging. Our benchmark is built on two key innovations: (1) an automated construction workflow that uses reverse engineering to systematically inject realistic bugs into large-scale SQL code, enabling scalable and diverse benchmark generation; and (2) an execution-free evaluation framework tailored to enterprise settings, providing fast, accurate, and resource-efficient assessment. OurBench comprises 469 OurBenchSyn queries featuring syntax errors with explicit error messages, and 516 OurBenchSem queries targeting semantic errors in which the code fails to meet user intent. The queries are highly complex, averaging over 140 lines and featuring deep and wide abstract syntax trees. Evaluation of nearly 30 LLMs reveals a substantial performance gap: the best-performing model, Claude-4-Sonnet, achieves only 36.46 percent accuracy on OurBenchSyn and 32.17 percent on OurBenchSem, while most models score below 20 percent. We further explore four solution strategies, identify key challenges, and outline promising directions for enterprise SQL debugging with LLMs.

📄 PDF Abstract BibTeX arXiv:2601.18119

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

SweEval: Do LLMs Really Swear? A Safety Benchmark for Testing Limits for Enterprise Use

2025-05-22 · Hitesh Laxmichand Patel, Amit Agarwal, Arion Das, Bhargava Kumar 외

Enterprise customers are increasingly adopting Large Language Models (LLMs) for critical communication tasks, such as drafting emails, crafting sales pitches, and composing casual messages. Deploying such models across d…

debug-gym: A Text-Based Environment for Interactive Debugging

2025-03-27 · Xingdi Yuan, Morgane M Moss, Charbel El Feghali, Chinmay Singh 외

Large Language Models (LLMs) are increasingly relied upon for coding tasks, yet in most scenarios it is assumed that all relevant information can be either accessed in context or matches their training data. We posit tha…

Revisit Self-Debugging with Self-Generated Tests for Code Generation

2025-01-22 · Xiancai Chen, Zhengwei Tao, Kechi Zhang, Changzhi Zhou 외

Large language models (LLMs) have shown significant advancements in code generation, but still face challenges on tasks beyond their basic capabilities. Recently, the notion of self-debugging has been proposed to boost t…

Code Generation

Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-step

2024-02-25 · Li Zhong, Zilong Wang, Jingbo Shang

Large language models (LLMs) are leading significant progress in code generation. Beyond one-pass code generation, recent works further integrate unit tests and program verifiers into LLMs to iteratively refine the gener…

Code GenerationHumanEvalLanguage ModelingLanguage Modelling+2

EntSQL: A Benchmark for Grounding Text-to-SQL in Long-Context Enterprise Knowledge

2026-06-02 · Chengxi Liao, Tao Xu, Zulong Chen, Chuanfei Xu 외 arxiv

Text-to-SQL enables natural language access to databases, and recent LLMs have substantially advanced its capabilities. Existing benchmarks such as Spider, BIRD, and Spider~2.0 evaluate schema generalization, large-scale…