Support Aggregate Analytic Window Function over Large Data by Spilling

07/20/2020
by   Xing Shi, et al.
0

Analytic function, also called window function, is to query the aggregation of data over a sliding window. For example, a simple query over the online stock platform is to return the average price of a stock of the last three days. These functions are commonly used features in SQL databases. They are supported in most of the commercial databases. With the increasing usage of cloud data infra and machine learning technology, the frequency of queries with analytic window functions rises. Some analytic functions only require const space in memory to store the state, such as SUM, AVG, while others require linear space, such as MIN, MAX. When the window is extremely large, the memory space to store the state may be too large. In this case, we need to spill the state to disk, which is a heavy operation. In this paper, we proposed an algorithm to manipulate the state data in the disk to reduce the disk I/O to make spill available and efficiency. We analyze the complexity of the algorithm with different data distribution.

READ FULL TEXT
research
07/29/2020

Aggregate Analytic Window Query over Spatial Data

Analytic window query is a commonly used query in the relational databas...
research
08/06/2022

Implementing Window Functions in a Column-Store with Late Materialization (Extended Version)

A window function is a generalization of the aggregation operation. Unli...
research
09/29/2020

In-Order Sliding-Window Aggregation in Worst-Case Constant Time

Sliding-window aggregation is a widely-used approach for extracting insi...
research
11/19/2020

Verifying the Correctness of Analytic Query Results

Data outsourcing is a cost-effective solution for data owners to tackle ...
research
10/14/2020

Continuous window functions for NFFT

In this paper, we study the error behavior of the nonequispaced fast Fou...
research
11/27/2021

Controlling the Correctness of Aggregation Operations During Sessions of Interactive Analytic Queries

We present a comprehensive set of conditions and rules to control the co...
research
06/10/2020

Sliding Window Algorithms for k-Clustering Problems

The sliding window model of computation captures scenarios in which data...

Please sign up or login with your details

Forgot password? Click here to reset