从计算演示合成解析SQL矩阵
Synthesizing Analytical SQL Queries from Computation Demonstration
摘要:
分析型SQL广泛应用于现代数据库应用程序和数据分析。然而,它的划分和分组操作符对于新手用户来说是具有挑战性的。不幸的是,在标准SQL上显示有效的示例编程不太吸引人,因为分析查询的示例手工解决起来更费力。为了使演示更容易创建,我们设计了一个新的最终用户规范,通过计算演示编程,允许用户使用(可能不完整的)单元级计算跟踪来演示任务。该规范被利用在一个新的基于抽象的合成算法,以证明一个部分形成的查询不能完成,以满足规范,允许我们修剪的搜索空间。我们在名为Sickle的工具中实现了我们的方法,并在80个真实分析SQL任务上对其进行了测试。结果表明,即使是小规模的演示,Sickle也可以在平均12.8秒内解决76个任务,而之前的方法只能解决60个任务,平均速度要慢22.5倍。我们对13名参与者的用户研究表明,我们的规范提高了用户在挑战性任务上的效率和信心。
英文摘要:
Analytical SQL is widely used in modern database applications and data analysis. However, its partitioning and grouping operators are challenging for novice users. Unfortunately, programming by example, shown effective on standard SQL, are less attractive because examples for analytical queries are more laborious to solve by hand. To make demonstrations easier to create, we designed a new end-user specification, programming by computation demonstration, that allows the user to demonstrate the task using a (possibly incomplete) cell-level computation trace. This specification is exploited in a new abstraction-based synthesis algorithm to prove that a partially formed query cannot be completed to satisfy the specification, allowing us to prune the search space. We implemented our approach in a tool named Sickle and tested it on 80 real-world analytical SQL tasks. Results show that even from small demonstrations, Sickle can solve 76 tasks, in 12.8 seconds on average, while the prior approaches can solve only 60 tasks and are on average 22.5x slower. Our user study with 13 participants reveals that our specification increases user efficiency and confidence on challenging tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。