Efficient Evaluation of Arbitrarily-Framed Holistic SQL Aggregates and Window Functions

Adrian Vogelsgesang, Thomas Neumann, Viktor Leis, Alfons Kemper

Publikation: Beitrag in Buch/Bericht/KonferenzbandKonferenzbeitragBegutachtung

1 Zitat (Scopus)

Abstract

Window functions became part of the SQL standard in SQL:2003 and are widely used for data analytics: Percentiles, rankings, moving averages, running sums and local maxima are all expressed as window functions in SQL. Yet, the features offered by SQL's window functions lack composability: Framing is only available for distributive and algebraic aggregate functions, but not for holistic aggregates like percentiles and window functions like ranks. The SQL standard explicitly disallows holistic aggregates from being framed and thereby severely limits data analysts. This paper proposes to remove this restriction, thereby making window functions fully composable. The newly gained composability allows for more complex aggregates which are tricky to evaluate. The lack of subquadratic, parallel algorithms to evaluate framed holistic aggregates is probably the main objection against adding truly composable window functionality to the SQL standard. As such, this paper shows how to efficiently evaluate all window and aggregate functions from SQL:2011, except for DENSE_RANK, in combination with arbitrary window frames. This includes framed distinct aggregates, framed value functions, framed percentiles and framed ranks.

OriginalspracheEnglisch
TitelSIGMOD 2022 - Proceedings of the 2022 International Conference on Management of Data
Herausgeber (Verlag)Association for Computing Machinery
Seiten1243-1256
Seitenumfang14
ISBN (elektronisch)9781450392495
DOIs
PublikationsstatusVeröffentlicht - 10 Juni 2022
Veranstaltung2022 ACM SIGMOD International Conference on the Management of Data, SIGMOD 2022 - Virtual, Online, USA/Vereinigte Staaten
Dauer: 12 Juni 202217 Juni 2022

Publikationsreihe

NameProceedings of the ACM SIGMOD International Conference on Management of Data
ISSN (Print)0730-8078

Konferenz

Konferenz2022 ACM SIGMOD International Conference on the Management of Data, SIGMOD 2022
Land/GebietUSA/Vereinigte Staaten
OrtVirtual, Online
Zeitraum12/06/2217/06/22

Fingerprint

Untersuchen Sie die Forschungsthemen von „Efficient Evaluation of Arbitrarily-Framed Holistic SQL Aggregates and Window Functions“. Zusammen bilden sie einen einzigartigen Fingerprint.

Dieses zitieren