Synthetic Dataset Generation for Database Query Testing
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The challenge is to generate a dataset against which a problematic query can be run, especially when no actual dataset is available, to recreate observed problems in database testing and troubleshooting, while avoiding security risks and resource inefficiencies.
Innovation Solution
A computer-implemented method that transforms queries with subqueries into transformed queries, generating query blocks with predicates, and uses this information to select data for a dataset, allowing the query to be executed and producing results.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If actual customer data is used for query testing and troubleshooting, then query results can be accurately reproduced, but data security risks increase and resource consumption increases
Solution Approach 1:
The patent creates synthetic datasets that copy the structural and relational characteristics of actual customer data without using the real data itself. The system generates test data that reproduces the schema, constraints, and relationships needed for accurate query testing while eliminating security risks associated with using actual customer information.
2Reliability
If actual customer data is used for query testing and troubleshooting, then query results can be accurately reproduced, but resource consumption increases
Solution Approach 1:
Instead of loading and processing large volumes of actual customer data, the system generates lightweight synthetic datasets that replicate only the necessary structural and relational properties. This copying approach significantly reduces resource consumption while maintaining the ability to accurately reproduce query results for testing and troubleshooting.
3Measurement precision
If subqueries are converted to outer query predicates, then query transformation accuracy improves, but processing complexity increases
Solution Approach 1:
The patent segments the query transformation process into distinct phases: identifying subqueries, extracting predicates, converting them to outer query equivalents, and validating the transformation. This segmentation manages processing complexity by breaking down the complex task into manageable steps while maintaining high transformation accuracy through systematic handling of each component.
Data Source
AI summary
Query content-based data generation includes obtaining a query having an outer query and one or more subqueries, converting predicates of a subquery to be predicates of the outer query, and thereby obtain a transformed query, generate from the transformed query a query block having a list of predicate(s) selected from the transformed query, obtaining column information based on the list of predicate(s) and using the column information to select data for a dataset such that data records from the dataset are produced as results to executing the obtained query against the dataset.


