CUBES:一种基于示例的并行SQL综合器
CUBES: A Parallel Synthesizer for SQL Using Examples
AI总结:
针对现有SQL综合器未利用多核架构且易因示例不完备偏离用户意图的问题,本文提出并行综合器CUBES,结合模糊测试消歧流程,在约4000条查询的测试中,求解能力、并行扩展性和准确率均优于现有最优方案。
摘要:
近年来,越来越多人的工作依赖数据处理任务,但其中许多用户不具备编写复杂程序(尤其是SQL查询)所需的编程背景。帮助这类用户的一种方法是,根据少量示例自动综合出对应的SQL查询。近年已有多款SQL程序综合器被提出,但它们都未利用多核架构。\n本文提出CUBES,这是一款面向SQL查询领域、基于输入输出示例的并行程序综合器。由于输入输出示例对目标SQL查询的描述是不完备的,有时综合出的查询会不符合用户意图。CUBES集成了一种基于模糊测试技术的新型消歧流程,该流程会与用户交互,提升返回查询与用户意图匹配的置信度。\n我们对来自不同领域的约4000条SQL查询开展了广泛评估。实验结果显示,我们的串行版本比其他现有最优SQL综合器能解决更多实例。此外,并行方法最多可扩展至16个进程,在许多困难实例上能实现超线性加速。我们的消歧方法对实现约60%的准确率至关重要,该准确率显著高于其他SQL综合器。
英文摘要:
In recent years, more people have seen their work depend on data manipulation tasks. However, many of these users do not have the background in programming required to write complex programs, particularly SQL queries. One way of helping these users is automatically synthesizing the SQL query given a small set of examples. Several program synthesizers for SQL have been recently proposed, but they do not leverage multicore architectures. This paper proposes CUBES, a parallel program synthesizer for the domain of SQL queries using input-output examples. Since input-output examples are an under-specification of the desired SQL query, sometimes, the synthesized query does not match the user's intent. CUBES incorporates a new disambiguation procedure based on fuzzing techniques that interacts with the user and increases the confidence that the returned query matches the user intent. We perform an extensive evaluation on around 4000 SQL queries from different domains. Experimental results show that our sequential version can solve more instances than other state-of-the-art SQL synthesizers. Moreover, the parallel approach can scale up to 16 processes with super-linear speedups for many hard instances. Our disambiguation approach is critical to achieving an accuracy of around 60%, significantly larger than other SQL synthesizers.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。