SnipSuggest: Context-Aware Autocompletion for SQL

被引:77
作者
Khoussainova, Nodira [1 ]
Kwon, YongChul [1 ]
Balazinska, Magdalena [1 ]
Suciu, Dan [1 ]
机构
[1] Univ Washington, Dept Comp Sci & Engn, Seattle, WA 98195 USA
来源
PROCEEDINGS OF THE VLDB ENDOWMENT | 2010年 / 4卷 / 01期
基金
美国国家科学基金会;
关键词
Query languages;
D O I
10.14778/1880172.1880175
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
In this paper, we present SnipSuggest, a system that provides onthe- go, context-aware assistance in the SQL composition process. SnipSuggest aims to help the increasing population of non-expert database users, who need to perform complex analysis on their large-scale datasets, but have difficulty writing SQL queries. As a user types a query, SnipSuggest recommends possible additions to various clauses in the query using relevant snippets collected from a log of past queries. SnipSuggest's current capabilities include suggesting tables, views, and table-valued functions in the FROM clause, columns in the SELECT clause, predicates in the WHERE clause, columns in the GROUP BY clause, aggregates, and some support for sub-queries. SnipSuggest adjusts its recommendations according to the context: as the user writes more of the query, it is able to provide more accurate suggestions. We evaluate SnipSuggest over two query logs: one from an undergraduate database class and another from the Sloan Digital Sky Survey database. We show that SnipSuggest is able to recommend useful snippets with up to 93.7% average precision, at interactive speed. We also show that SnipSuggest outperforms naive approaches, such as recommending popular snippets.
引用
收藏
页码:22 / 33
页数:12
相关论文
共 19 条
[1]  
[Anonymous], 2009, PROC VLDB ENDOW
[2]  
Baeza-Yates R. A., 1999, MODERN INFORM RETRIE
[3]  
BaseNow, SQL QUER BUILD
[4]  
Broder A., 2002, SIGIR FORUM
[5]  
Card S. K., 1991, P SIGCHI
[6]   Visual query systems for databases: A survey [J].
Catarci, T ;
Costabile, MF ;
Levialdi, S ;
Batini, C .
JOURNAL OF VISUAL LANGUAGES AND COMPUTING, 1997, 8 (02) :215-260
[7]  
Chatzopoulou G., SSDBM 2009
[8]  
CHAUDHURI S, 2004, P VLDB
[9]  
Downey D., 2008, CIKM
[10]  
Downey D., 2007, IJCAI