arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1802.02872cs.DB
收藏

用于数据探索的SQL查询完成

SQL Query Completion for Data Exploration

Marie Le Guilly, Jean-Marc Petit, Vasile-Marian Scuturici

摘要:

在大数据海啸中,关系数据库和SQL仍然存在,并且在大多数情况下仍然是访问数据的必需品。一方面,SQL易于非专业人士使用,并允许在数据探索过程的最初阶段识别相关的初始数据。另一方面,制定SQL查询并不总是那么容易:现在,一个应用程序域越来越频繁地有多个数据库,其中一些数据库具有数百个表和/或属性。识别相关条件以选择所需的数据,甚至识别相关属性,这绝非易事。为了更容易编写SQL查询,我们提出了SQL查询完成的概念:给定一个查询,它建议将附加条件添加到其WHERE子句中。这种补全是语义的,因为它依赖于来自数据库的数据,而不像当前的补全工具大多是语法的。由于这个过程可以一遍又一遍地重复--直到数据分析师找到她感兴趣的数据--SQL查询完成促进了数据库的探索。SQL查询完成已经在数据库管理系统之上的SQL编辑器中实现。对于评估,需要研究两个问题:第一,完成是否加快了SQL查询的编写速度?第二,是否容易被用户接受?对70名计算机科学专业的学生进行了一次彻底的实验,他们被分成两组(一组完成了实验,另一组没有完成)来回答这些问题。结果是积极的和非常有希望的。

英文摘要:

Within the big data tsunami, relational databases and SQL are still there and remain mandatory in most of cases for accessing data. On the one hand, SQL is easy-to-use by non specialists and allows to identify pertinent initial data at the very beginning of the data exploration process. On the other hand, it is not always so easy to formulate SQL queries: nowadays, it is more and more frequent to have several databases available for one application domain, some of them with hundreds of tables and/or attributes. Identifying the pertinent conditions to select the desired data, or even identifying relevant attributes is far from trivial. To make it easier to write SQL queries, we propose the notion of SQL query completion: given a query, it suggests additional conditions to be added to its WHERE clause. This completion is semantic, as it relies on the data from the database, unlike current completion tools that are mostly syntactic. Since the process can be repeated over and over again -- until the data analyst reaches her data of interest --, SQL query completion facilitates the exploration of databases. SQL query completion has been implemented in a SQL editor on top of a database management system. For the evaluation, two questions need to be studied: first, does the completion speed up the writing of SQL queries? Second , is the completion easily adopted by users? A thorough experiment has been conducted on a group of 70 computer science students divided in two groups (one with the completion and the other one without) to answer those questions. The results are positive and very promising.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑