DBLGApr 24, 2025

High-Fidelity And Complex Test Data Generation For Google SQL Code Generation Services

arXiv:2504.17203v32 citationsh-index: 2
Originality Incremental advance
AI Analysis

This addresses the need for robust testing in industrial settings where production data is often unavailable, though it appears incremental by applying LLMs to a specific domain problem.

The paper tackles the problem of generating high-fidelity test data for complex SQL code generation services, such as NL2SQL, by using Large Language Models (LLMs) with pre- and post-processing to produce syntactically correct and semantically relevant mock data that supports testing of complex queries like joins and nested subqueries.

The demand for high-fidelity test data is paramount in industrial settings where access to production data is largely restricted. Traditional data generation methods often fall short, struggling with low-fidelity and the ability to model complex data structures and semantic relationships that are critical for testing complex SQL code generation services like Natural Language to SQL (NL2SQL). In this paper, we address the critical need for generating syntactically correct and semantically relevant high-fidelity mock data for complex data structures that includes columns with nested structures that we frequently encounter in Google workloads. We highlight the limitations of existing approaches used in production, particularly their inability to handle large and complex data structures, as well as the lack of semantically coherent test data that lead to limited test coverage. We demonstrate that by leveraging Large Language Models (LLMs) and incorporating strategic pre- and post-processing steps, we can generate syntactically correct and semantically relevant high-fidelity test data that adheres to complex structural constraints and maintains semantic integrity to the SQL test targets (queries/functions). This approach supports comprehensive testing of complex SQL queries involving joins, aggregations, and even deeply nested subqueries, ensuring robust evaluation of SQL code generation services, like NL2SQL and SQL Code Assistant. Our results demonstrate the practical utility of an LLM (\textit{gemini}) based test data generation for industrial SQL code generation services where generating high-fidelity test data is essential due to the frequent unavailability and inaccessibility of production datasets for testing.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes