Article ID Journal Published Year Pages File Type
396579 Information Systems 2011 18 Pages PDF
Abstract

The SQL:2003 standard introduced window functions to enhance the analytical processing capabilities of SQL. The key concept of window functions is to sort the input relation and to compute the aggregate results during a scan of the sorted relation. For multi-dimensional OLAP queries with aggregation groups defined by a general θθ condition an appropriate ordering does not exist, though, and hence expensive join-based solutions are required.In this paper we introduce θ‐constrainedθ‐constrained multi-dimensional aggregation (θ‐MDAθ‐MDA), which supports multi-dimensional OLAP queries with aggregation groups defined by inequalities. θ‐MDAθ‐MDA is not based on an ordering of the data relation. Instead, the tuples that shall be considered for computing an aggregate value can be determined by a general θθ condition. This facilitates the formulation of complex queries, such as multi-dimensional cumulative aggregates, which are difficult to express in SQL because no appropriate ordering exists. We present algebraic transformation rules that demonstrate how the θ‐MDAθ‐MDA interacts with other operators of a multi-set algebra. Various techniques for achieving an efficient evaluation of the θ‐MDAθ‐MDA are investigated, and we integrate them into concrete evaluation algorithms and provide cost formulas. An empirical evaluation with data from the TPC-H benchmark confirms the scalability of the θ‐MDAθ‐MDA operator and shows performance improvements of up to one order of magnitude over equivalent SQL implementations.

Related Topics
Physical Sciences and Engineering Computer Science Artificial Intelligence
Authors
, , , ,