The CQL continuous query language: semantic foundations and query execution

被引:459
作者
Arasu, A [1 ]
Babu, S [1 ]
Widom, J [1 ]
机构
[1] Stanford Univ, Dept Comp Sci, Stanford, CA 94305 USA
关键词
data streams; continuous queries; query language; query processing;
D O I
10.1007/s00778-004-0147-z
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
CQL, a contintious query language, is supported by the STREAM prototype data stream management system (DSMS) at Stanford. CQL is an expressive SQL-based declarative language for registering continuous queries against streams and stored relations. We begin by presenting an abstract semantics that relies only on "black-box" mappings among streams and relations. From these mappings we define a precise and general interpretation for continuous queries. CQL is an instantiation of our abstract semantics using SQL to map from relations to relations, window specifications derived from SQL-99 to map from streams to relations, and three new operators to map from relations to streams. Most of the CQL language is operational in the STREAM system. We present the structure of CQL's query execution plans as well as details of the most important components: operators, interoperator queues, synopses, and sharing of components among Multiple operators and queries. Examples throughout the paper are drawn from the Linear Road benchmark recently proposed for DSMSs. We also curate a public repository of data stream applications that includes a wide variety of queries expressed in CQL. The relative ease of capturing these applications in CQL is one indicator that the language contains an appropriate set of constructs for data stream processing.
引用
收藏
页码:121 / 142
页数:22
相关论文
共 45 条
  • [1] [Anonymous], 2013, P 29 INT C VERY LARG
  • [2] [Anonymous], 2003, Proceedings of the 2003 ACM SIGMOD International Conference on Management of Data-SIGMOD'03
  • [3] Characterizing memory requirements for queries over continuous data streams
    Arasu, A
    Babcock, B
    Babu, S
    McAlister, J
    Widom, J
    [J]. ACM TRANSACTIONS ON DATABASE SYSTEMS, 2004, 29 (01): : 162 - 194
  • [4] Arasu A, 2004, SIGMOD REC, V33, P6, DOI 10.1145/1031570.1031572
  • [5] ARASU A, 2004, VLDB, P336, DOI DOI 10.1016/B978-012088469-8.50032-2
  • [6] ARASU A, 2003, P 2003 ACM SIGMOD IN, P665
  • [7] Arasu A., 2004, P 13 INT C VER LARG, V30, P480
  • [8] ARASU A, 2003, 9 INT WORKSH DAT PRO, P1
  • [9] Load shedding for aggregation queries over data streams
    Babcock, B
    Datar, M
    Motwani, R
    [J]. 20TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING, PROCEEDINGS, 2004, : 350 - 361
  • [10] BABU S, 2004, P ACM SIGMOD INT C M, P407