paper-with-me

홈 › Papers

Automating Database-Native Function Code Synthesis with LLMs

2026-04-02 · Wei Zhou, Xuanhe Zhou, Qikang He, Guoliang Li, Bingsheng He, Quanqing Xu, Fan Wu arxiv

Database systems incorporate an ever-growing number of functions in their kernels (a.k.a., database native functions) for scenarios like new application support and business migration. This growth causes an urgent demand for automatic database native function synthesis. While recent advances in LLM-based code generation (e.g., Claude Code) show promise, they are too generic for database-specific development. They often hallucinate or overlook critical context because database function synthesis is inherently complex and error-prone, where synthesizing a single function may involve registering multiple function units, linking internal references, and implementing logic correctly. To this end, we propose DBCooker, an LLM-based system for automatically synthesizing database native functions. It consists of three components. First, the function characterization module aggregates multi-source declarations, identifies function units that require specialized coding, and traces cross-unit dependencies. Second, we design operations to address the main synthesis challenges: (1) a pseudo-code-based coding plan generator that constructs structured implementation skeletons by identifying key elements such as reusable referenced functions; (2) a hybrid fill-in-the-blank model guided by probabilistic priors and component awareness to integrate core logic with reusable routines; and (3) three-level progressive validation, including syntax checking, standards compliance, and LLM-guided semantic verification. Finally, an adaptive orchestration strategy unifies these operations with existing tools and dynamically sequences them via the orchestration history of similar functions. Results show that DBCooker outperforms other methods on SQLite, PostgreSQL, and DuckDB (34.55% higher accuracy on average), and can synthesize new functions absent in the latest SQLite (v3.50).

📄 PDF Abstract BibTeX arXiv:2604.06231

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

EMR-AGENT: Automating Cohort and Feature Extraction from EMR Databases

2025-10-01 · Kwanhyung Lee, Sungsoo Hong, Joonhyung Park, Jeonghyeop Lim 외 arxiv

Machine learning models for clinical prediction rely on structured data extracted from Electronic Medical Records (EMRs), yet this process remains dominated by hardcoded, database-specific pipelines for cohort definition…

Decision Making

Generating Realistic Synthetic Relational Data through Graph Variational Autoencoders

2022-11-30 · Ciro Antonio Mami, Andrea Coser, Eric Medvet, Alexander T. P. Boudewijn 외

Synthetic data generation has recently gained widespread attention as a more reliable alternative to traditional data anonymization. The involved methods are originally developed for image synthesis. Hence, their applica…

Image GenerationSynthetic Data Generation

EigenData: A Self-Evolving Multi-Agent Platform for Function-Calling Data Synthesis, Auditing, and Repair

2026-03-05 · Jiaao Chen, Jingyuan Qi, Mingye Gao, Wei-Chen Wang 외 arxiv

Function-calling agents -- large language models that invoke tools and APIs -- require high-quality, domain-specific training data spanning executable environments, backing databases, and diverse multi-turn trajectories.…

Text-Guided Synthesis of Artistic Images with Retrieval-Augmented Diffusion Models

2022-07-26 · Robin Rombach, Andreas Blattmann, Björn Ommer

Novel architectures have recently improved generative image synthesis leading to excellent visual quality in various tasks. Of particular note is the field of ``AI-Art'', which has seen unprecedented growth with the emer…

Image GenerationPrompt EngineeringRetrieval

MaskPLAN: Masked Generative Layout Planning from Partial Input

2024-01-01 · CVPR 2024 1 · Hang Zhang, Anton Savov, Benjamin Dillenburger

Layout planning spanning from architecture to interior design is a slow iterative exploration of ill-defined problems adopting a "I'll know it when I see it" approach to potential solutions. Recent advances in genera…

AttributeDesign SynthesisLayout Generation