Window function expression: Let the self-join enter

dc.contributor.authorBača, Radim
dc.date.accessioned2026-05-20T12:18:55Z
dc.date.available2026-05-20T12:18:55Z
dc.date.issued2024
dc.description.abstractWindow function expressions (WFEs) became part of the SQL:2003 standard, and since then, they have often been implemented in database systems (DBS). They are especially essential to OLAP DBSs, and people use them daily. Even though WFEs are a heavily used part of the SQL language, the amount of research done on their optimization in the last two decades is not significant. WFE does not extend the expressive power of the SQL language, but it makes writing SQL queries easier and more transparent. DBSs always compile SQL queries with WFE using a sequence of partition-sort-compute operators, which we call a linear strategy. Plans resulting from the linear strategy are robust and, in many cases, efficient. This article introduces an alternative strategy using a self-join, which is not considered in the current DBSs. We call it the self-join strategy, and it is based on an SQL query transformation where the result query uses a self-join query plan to compute WFE. One output of this work is a tool that can automatically perform such SQL query transformations. We created a microbenchmark showing that the self-join strategy is more effective than the linear strategy in many cases. We also performed a cost-based experiment to evaluate the query optimizers' ability to select an appropriate strategy. The article's main aim is to show that usage of the self-join strategy for queries with WFE is beneficial if selected in a cost-based manner.
dc.description.firstpage2162
dc.description.issue9
dc.description.lastpage2174
dc.description.sourceWeb of Science
dc.description.volume17
dc.identifier.citationProceedings of the VLDB Endowment. 2024, vol. 17, issue 9, p. 2162-2174.
dc.identifier.doi10.14778/3665844.3665848
dc.identifier.issn2150-8097
dc.identifier.urihttp://hdl.handle.net/10084/158653
dc.identifier.wos001308222700004
dc.language.isoen
dc.publisherAssociation for Computing Machinery
dc.relation.ispartofseriesProceedings of the VLDB Endowment
dc.relation.urihttps://doi.org/10.1016/j.apsusc.2024.161055
dc.rightsThis work is licensed under the Creative Commons BY-NC-ND 4.0 International License. Visit https://creativecommons.org/licenses/by-nc-nd/4.0/ to view a copy of this license. For any use beyond those covered by this license, obtain permission by emailing info@vldb.org. Copyright is held by the owner/author(s). Publication rights licensed to the VLDB Endowment.
dc.rights.accessopenAccess
dc.rights.urihttps://creativecommons.org/licenses/by-nc-nd/4.0/
dc.titleWindow function expression: Let the self-join enter
dc.typearticle
dc.type.statusPeer-reviewed
dc.type.versionpublishedVersion
local.files.count1
local.files.size710014
local.has.filesyes

Files

Original bundle

Now showing 1 - 1 out of 1 results
Loading...
Thumbnail Image
Name:
2150-8097-2024v17i9p2162.pdf
Size:
693.37 KB
Format:
Adobe Portable Document Format

License bundle

Now showing 1 - 1 out of 1 results
Loading...
Thumbnail Image
Name:
license.txt
Size:
718 B
Format:
Item-specific license agreed upon to submission
Description: