{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,3]],"date-time":"2026-11-03T13:11:43Z","timestamp":1793711503375,"version":"4.6.1"},"reference-count":35,"publisher":"Association for Computing Machinery (ACM)","issue":"11","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. VLDB Endow."],"published-print":{"date-parts":[[2022,7]]},"abstract":"<jats:p>Since its invention, data-centric code generation has been adopted for query compilation by various database systems in academia and industry. These database systems are fast but maximize performance at the expense of developer friendliness, flexibility, and extensibility. Recent advances in the field of compiler construction identified similar issues for domain-specific compilers and introduced a solution with MLIR, a generic infrastructure for domain-specific dialects.<\/jats:p>\n                  <jats:p>We propose a layered query compilation stack based on MLIR with open intermediate representations that can be combined at each layer. We further propose moving query optimization into the query compiler to benefit from the existing optimization infrastructure and make cross-domain optimization viable. With LingoDB, we demonstrate that the used approach significantly decreases the implementation effort and is highly flexible and extensible. At the same time, LingoDB achieves high performance and low compilation latencies.<\/jats:p>","DOI":"10.14778\/3551793.3551801","type":"journal-article","created":{"date-parts":[[2022,9,29]],"date-time":"2022-09-29T18:25:03Z","timestamp":1664475903000},"page":"2389-2401","source":"Crossref","is-referenced-by-count":38,"title":["Designing an open framework for query optimization and compilation"],"prefix":"10.14778","volume":"15","author":[{"given":"Michael","family":"Jungmair","sequence":"first","affiliation":[{"name":"Technische Universit\u00e4t M\u00fcnchen"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Andr\u00e9","family":"Kohn","sequence":"additional","affiliation":[{"name":"Technische Universit\u00e4t M\u00fcnchen"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Jana","family":"Giceva","sequence":"additional","affiliation":[{"name":"Technische Universit\u00e4t M\u00fcnchen"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2022,9,29]]},"reference":[{"key":"e_1_2_1_1_1","volume-title":"Tensorflow: A system for large-scale machine learning. In 12th {USENIX} symposium on operating systems design and implementation ({OSDI} 16). 265--283.","author":"Abadi Mart\u00edn","year":"2016","unstructured":"Mart\u00edn Abadi , Paul Barham , Jianmin Chen , Zhifeng Chen , Andy Davis , Jeffrey Dean , Matthieu Devin , Sanjay Ghemawat , Geoffrey Irving , Michael Isard , 2016 . Tensorflow: A system for large-scale machine learning. In 12th {USENIX} symposium on operating systems design and implementation ({OSDI} 16). 265--283. Mart\u00edn Abadi, Paul Barham, Jianmin Chen, Zhifeng Chen, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Geoffrey Irving, Michael Isard, et al. 2016. Tensorflow: A system for large-scale machine learning. In 12th {USENIX} symposium on operating systems design and implementation ({OSDI} 16). 265--283."},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.14778\/3476249.3476296"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/3447786.3456254"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00778-018-0512-y"},{"key":"e_1_2_1_5_1","unstructured":"Carnegie Mellon University Database Group. 2021. NoisePage. https:\/\/noise.page. Accessed: 2021-09-10.  Carnegie Mellon University Database Group. 2021. NoisePage. https:\/\/noise.page. Accessed: 2021-09-10."},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/3276945.3276951"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/2723372.2742795"},{"key":"e_1_2_1_8_1","unstructured":"Tableau Software Inc. 2021. Tableau Hyper API. https:\/\/help.tableau.com\/current\/api\/hyper_api\/en-us\/index.html. Accessed: 2021-09-26.  Tableau Software Inc. 2021. Tableau Hyper API. https:\/\/help.tableau.com\/current\/api\/hyper_api\/en-us\/index.html. Accessed: 2021-09-26."},{"key":"e_1_2_1_9_1","unstructured":"Konstantinos Karanasos Matteo Interlandi Doris Xin Fotis Psallidas Rathijit Sen Kwanghyun Park Ivan Popivanov Supun Nakandal Subru Krishnan Markus Weimer etal 2019. Extending relational query processing with ML inference. arXiv preprint arXiv:1911.00231 (2019).  Konstantinos Karanasos Matteo Interlandi Doris Xin Fotis Psallidas Rathijit Sen Kwanghyun Park Ivan Popivanov Supun Nakandal Subru Krishnan Markus Weimer et al. 2019. Extending relational query processing with ML inference. arXiv preprint arXiv:1911.00231 (2019)."},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICDE.2011.5767867"},{"key":"e_1_2_1_11_1","volume-title":"Tidy Tuples and Flying Start: fast compilation and fast execution of relational queries in Umbra. The VLDB Journal","author":"Kersten Timo","year":"2021","unstructured":"Timo Kersten , Viktor Leis , and Thomas Neumann . 2021. Tidy Tuples and Flying Start: fast compilation and fast execution of relational queries in Umbra. The VLDB Journal ( 2021 ), 1--23. Timo Kersten, Viktor Leis, and Thomas Neumann. 2021. Tidy Tuples and Flying Start: fast compilation and fast execution of relational queries in Umbra. The VLDB Journal (2021), 1--23."},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/3395032.3395321"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.14778\/2732951.2732959"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICDE.2018.00027"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/3448016.3457288"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1109\/CGO.2004.1281665"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1109\/CGO51591.2021.9370308"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/2588555.2610507"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.14778\/3151113.3151114"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/1376616.1376672"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/3399666.3399911"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.14778\/2002938.2002940"},{"key":"e_1_2_1_23_1","volume-title":"Umbra: A Disk-Based System with In-Memory Performance.. In CIDR.","author":"Neumann Thomas","year":"2020","unstructured":"Thomas Neumann and Michael J Freitag . 2020 . Umbra: A Disk-Based System with In-Memory Performance.. In CIDR. Thomas Neumann and Michael J Freitag. 2020. Umbra: A Disk-Based System with In-Memory Performance.. In CIDR."},{"key":"e_1_2_1_24_1","volume-title":"Technologie und Web (BTW 2015)","author":"Neumann Thomas","year":"2015","unstructured":"Thomas Neumann and Alfons Kemper . 2015. Unnesting arbitrary queries. Datenbanksysteme f\u00fcr Business , Technologie und Web (BTW 2015) ( 2015 ). Thomas Neumann and Alfons Kemper. 2015. Unnesting arbitrary queries. Datenbanksysteme f\u00fcr Business, Technologie und Web (BTW 2015) (2015)."},{"key":"e_1_2_1_25_1","unstructured":"OpenMP Architecture Review Board. 2021. OpenMP Application Program Interface Version. https:\/\/www.openmp.org\/wp-content\/uploads\/OpenMP-API-Specification-5-2.pdf  OpenMP Architecture Review Board. 2021. OpenMP Application Program Interface Version. https:\/\/www.openmp.org\/wp-content\/uploads\/OpenMP-API-Specification-5-2.pdf"},{"key":"e_1_2_1_26_1","volume-title":"Conference on Innovative Data Systems Research (CIDR)","volume":"19","author":"Palkar Shoumik","year":"2017","unstructured":"Shoumik Palkar , James J Thomas , Anil Shanbhag , Deepak Narayanan , Holger Pirk , Malte Schwarzkopf , Saman Amarasinghe , Matei Zaharia , and Stanford InfoLab . 2017 . Weld: A common runtime for high performance data analytics . In Conference on Innovative Data Systems Research (CIDR) , Vol. 19 . Shoumik Palkar, James J Thomas, Anil Shanbhag, Deepak Narayanan, Holger Pirk, Malte Schwarzkopf, Saman Amarasinghe, Matei Zaharia, and Stanford InfoLab. 2017. Weld: A common runtime for high performance data analytics. In Conference on Innovative Data Systems Research (CIDR), Vol. 19."},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.14778\/3007328.3007336"},{"key":"e_1_2_1_28_1","unstructured":"CIRCT Project. 2021. \"CIRCT\" \/ Circuit IR Compilers and Tools. https:\/\/circt.llvm.org\/. Accessed: 2021-12-23.  CIRCT Project. 2021. \"CIRCT\" \/ Circuit IR Compilers and Tools. https:\/\/circt.llvm.org\/. Accessed: 2021-12-23."},{"key":"e_1_2_1_29_1","volume-title":"Kaleidoscope: Adding JIT and Optimizer Support - LLVM Optimization Passes. https:\/\/llvm.org\/docs\/tutorial\/MyFirstLanguageFrontend\/LangImpl04.html#llvm-optimization-passes. Accessed: 2022-03-22.","author":"Project LLVM","year":"2022","unstructured":"LLVM Project . 2022 . Kaleidoscope: Adding JIT and Optimizer Support - LLVM Optimization Passes. https:\/\/llvm.org\/docs\/tutorial\/MyFirstLanguageFrontend\/LangImpl04.html#llvm-optimization-passes. Accessed: 2022-03-22. LLVM Project. 2022. Kaleidoscope: Adding JIT and Optimizer Support - LLVM Optimization Passes. https:\/\/llvm.org\/docs\/tutorial\/MyFirstLanguageFrontend\/LangImpl04.html#llvm-optimization-passes. Accessed: 2022-03-22."},{"key":"e_1_2_1_30_1","unstructured":"Torch-MLIR Project. 2022. Torch-MLIR. https:\/\/github.com\/llvm\/torch-mlir. Accessed: 2022-03-16.  Torch-MLIR Project. 2022. Torch-MLIR. https:\/\/github.com\/llvm\/torch-mlir. Accessed: 2022-03-16."},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1145\/3299869.3320212"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.1145\/2882903.2915244"},{"key":"e_1_2_1_33_1","unstructured":"SingleStore Inc. 2021. SingleStore: The Single Database for All Data-Intensive Applications. https:\/\/singlestore.com. Accessed: 2021-09-10.  SingleStore Inc. 2021. SingleStore: The Single Database for All Data-Intensive Applications. https:\/\/singlestore.com. Accessed: 2021-09-10."},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/3183713.3196893"},{"key":"e_1_2_1_35_1","unstructured":"The Apache Software Foundation. 2016. ClickHouse - fast open-source OLAP DBMS. https:\/\/clickhouse.tech. Accessed: 2021-09-10.  The Apache Software Foundation. 2016. ClickHouse - fast open-source OLAP DBMS. https:\/\/clickhouse.tech. Accessed: 2021-09-10."}],"container-title":["Proceedings of the VLDB Endowment"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.14778\/3551793.3551801","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2022,12,28]],"date-time":"2022-12-28T05:24:21Z","timestamp":1672205061000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.14778\/3551793.3551801"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022,7]]},"references-count":35,"journal-issue":{"issue":"11","published-print":{"date-parts":[[2022,7]]}},"alternative-id":["10.14778\/3551793.3551801"],"URL":"https:\/\/doi.org\/10.14778\/3551793.3551801","relation":{},"ISSN":["2150-8097"],"issn-type":[{"value":"2150-8097","type":"print"}],"subject":[],"published":{"date-parts":[[2022,7]]}}}