{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,8,30]],"date-time":"2025-08-30T00:06:00Z","timestamp":1756512360045,"version":"3.44.0"},"reference-count":70,"publisher":"Association for Computing Machinery (ACM)","issue":"6","content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. VLDB Endow."],"published-print":{"date-parts":[[2025,2]]},"abstract":"<jats:p>Understanding and diagnosing query optimizers is crucial to guarantee the correctness and efficiency of query processing in database systems. However, achieving this is non-trivial as there are three technical challenges: (i) hundreds and thousands of query plans are generated for each query during the query optimization procedure; (ii) the transformation logic among query plans is not easy to investigate even for expert database system developers; and (iii) navigating users to the root causes of the bugs\/errors is inherently hard as the changes of the operators among query plans are missing in the query processing log. In this work, we propose QOVIS to overcome these challenges, which identifies the query optimization bugs\/issues and investigates their root causes via a visualization-assisted approach. Specifically, QOVIS consists of data preprocessing layer, transformation logic computation layer, and visual analysis layer. We conduct extensive experimental studies (e.g., user study, case study, and performance study) to evaluate the efficiency and effectiveness of QOVIS. In particular, our user study (on 24 database developers and researchers) confirms that QOVIS significantly reduces the time required to investigate the bugs\/errors in the query optimizer. Moreover, the generality of QOVIS is verified by utilizing it to understand and diagnose the real-world reported bugs\/errors in different query optimizers of three widely-used systems: Apache Spark, Apache Hive, and DuckDB.<\/jats:p>","DOI":"10.14778\/3725688.3725698","type":"journal-article","created":{"date-parts":[[2025,8,29]],"date-time":"2025-08-29T14:19:21Z","timestamp":1756477161000},"page":"1677-1690","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":0,"title":["QOVIS: Understanding and Diagnosing Query Optimizer via a Visualization-Assisted Approach"],"prefix":"10.14778","volume":"18","author":[{"given":"Zhengxin","family":"You","sequence":"first","affiliation":[{"name":"The Hong Kong Polytechnic University and Southern University of Science and Technology, Hong Kong, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Qiaomu","family":"Shen","sequence":"additional","affiliation":[{"name":"Beijing Institute of Technology, Zhuhai, Zhuhai, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Man Lung","family":"Yiu","sequence":"additional","affiliation":[{"name":"The Hong Kong Polytechnic University, Hong Kong, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Bo","family":"Tang","sequence":"additional","affiliation":[{"name":"Southern University of Science and Technology, Shenzhen, China"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2025,8,29]]},"reference":[{"key":"e_1_2_1_1_1","unstructured":"2024. Apache Hive issue: Recursive application of rules. https:\/\/issues.apache.org\/jira\/browse\/HIVE-25758"},{"key":"e_1_2_1_2_1","unstructured":"2024. Apache Hive issue tracker website. https:\/\/issues.apache.org\/jira\/projects\/HIVE\/issues"},{"key":"e_1_2_1_3_1","unstructured":"2024. Apache Hive patch for issue: Recursive application of rules. https:\/\/github.com\/apache\/hive\/pull\/2840"},{"key":"e_1_2_1_4_1","unstructured":"2024. Apache Spark issue tracker website. https:\/\/issues.apache.org\/jira\/projects\/SPARK\/issues"},{"key":"e_1_2_1_5_1","unstructured":"2024. DuckDB issue: Incorrect subquery pruning. https:\/\/github.com\/duckdb\/duckdb\/issues\/11294"},{"key":"e_1_2_1_6_1","unstructured":"2024. DuckDB issue tracker website. https:\/\/github.com\/duckdb\/duckdb\/issues"},{"key":"e_1_2_1_7_1","unstructured":"2024. DuckDB patch for issue: Sub-optimal optimization. https:\/\/github.com\/duckdb\/duckdb\/pull\/11315"},{"key":"e_1_2_1_8_1","unstructured":"2024. Microsoft SQL Server Management Studio (SSMS) documentation. https:\/\/learn.microsoft.com\/zh-cn\/sql\/ssms\/sql-server-management-studio-ssms?view=sql-server-ver16"},{"key":"e_1_2_1_9_1","unstructured":"2024. The source code of QOVIS. https:\/\/github.com\/DBGroup-SUSTech\/QOVIS."},{"key":"e_1_2_1_10_1","unstructured":"2024. Spark issue: Incorrect plan transformation. https:\/\/issues.apache.org\/jira\/browse\/SPARK-41162."},{"key":"e_1_2_1_11_1","unstructured":"2024. Spark issue: Loop optimization. https:\/\/issues.apache.org\/jira\/browse\/SPARK-37222."},{"key":"e_1_2_1_12_1","unstructured":"2024. Spark UI documentation. https:\/\/spark.apache.org\/docs\/latest\/web-ui.html"},{"key":"e_1_2_1_13_1","unstructured":"2024. Studied optimization issues. https:\/\/docs.google.com\/spreadsheets\/d\/1A4VSKQkVnhceMOUp3N071a7TMtKQVhWk8iyj6g8U5-8\/edit?usp=sharing."},{"key":"e_1_2_1_14_1","unstructured":"2024. Tez UI documentation. https:\/\/tez.apache.org\/tez-ui.html"},{"key":"e_1_2_1_15_1","unstructured":"2024. User study materials of QOVIS. https:\/\/github.com\/DBGroup-SUSTech\/QOVIS\/tree\/master\/eval\/user_study."},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.14778\/3611540.3611586"},{"key":"e_1_2_1_17_1","doi-asserted-by":"crossref","unstructured":"Michael Armbrust Reynold S. Xin Cheng Lian Yin Huai Davies Liu Joseph K. Bradley Xiangrui Meng Tomer Kaftan Michael J. Franklin Ali Ghodsi and Matei Zaharia. 2015. Spark SQL: Relational Data Processing in Spark. In SIGMOD. 1383\u20131394.","DOI":"10.1145\/2723372.2742797"},{"key":"e_1_2_1_18_1","doi-asserted-by":"crossref","unstructured":"Jinsheng Ba and Manuel Rigger. 2023. Testing Database Engines via Query Plan Guidance. In ICSE. 2060\u20132071.","DOI":"10.1109\/ICSE48619.2023.00174"},{"key":"e_1_2_1_19_1","volume-title":"Apache Calcite: A Foundational Framework for Optimized Query Processing Over Heterogeneous Data Sources. In SIGMOD. 221\u2013230.","author":"Begoli Edmon","year":"2018","unstructured":"Edmon Begoli, Jes\u00fas Camacho-Rodr\u00edguez, Julian Hyde, Michael J Mior, and Daniel Lemire. 2018. Apache Calcite: A Foundational Framework for Optimized Query Processing Over Heterogeneous Data Sources. In SIGMOD. 221\u2013230."},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1109\/TVCG.2013.124"},{"key":"e_1_2_1_21_1","volume-title":"Evaluating Partially Drawn Links for Directed Graph Edges. In International Symposium on Graph Drawing. 226\u2013237","author":"Burch Michael","year":"2012","unstructured":"Michael Burch, Corinna Vehlow, Natalia Konevtsova, and Daniel Weiskopf. 2012. Evaluating Partially Drawn Links for Directed Graph Edges. In International Symposium on Graph Drawing. 226\u2013237."},{"key":"e_1_2_1_22_1","volume-title":"Apache Flink: Stream and Batch Processing in a Single Engine. The Bulletin of the Technical Committee on Data Engineering 38, 4","author":"Carbone Paris","year":"2015","unstructured":"Paris Carbone, Asterios Katsifodimos, Stephan Ewen, Volker Markl, Seif Haridi, and Kostas Tzoumas. 2015. Apache Flink: Stream and Batch Processing in a Single Engine. The Bulletin of the Technical Committee on Data Engineering 38, 4 (2015)."},{"key":"e_1_2_1_23_1","volume-title":"18th International Workshop on Database and Expert Systems Applications. 109\u2013113","author":"Cerullo Claudio","year":"2007","unstructured":"Claudio Cerullo and Marco Porta. 2007. A System for Database Visual Querying and Query Visualization: Complementing Text and Graphics to Increase Expressiveness. In 18th International Workshop on Database and Expert Systems Applications. 109\u2013113."},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.14778\/3236187.3236200"},{"key":"e_1_2_1_25_1","volume-title":"Cosette: An Automated Prover for SQL. In CIDR.","author":"Chu Shumo","year":"2017","unstructured":"Shumo Chu, Chenglong Wang, Konstantin Weitz, and Alvin Cheung. 2017. Cosette: An Automated Prover for SQL. In CIDR."},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/1456650.1456652"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.14778\/3352063.3352120"},{"key":"e_1_2_1_28_1","first-page":"324","article-title":"STRATISFIMAL LAYOUT: A modular optimization model for laying out layered node-link network visualizations","volume":"28","author":"Bartolomeo Sara Di","year":"2021","unstructured":"Sara Di Bartolomeo, Mirek Riedewald, Wolfgang Gatterbauer, and Cody Dunne. 2021. STRATISFIMAL LAYOUT: A modular optimization model for laying out layered node-link network visualizations. TVCG 28 (2021), 324\u2013334.","journal-title":"TVCG"},{"key":"e_1_2_1_29_1","doi-asserted-by":"crossref","unstructured":"Dan Diaper and Neville Stanton. 2003. The handbook of task analysis for humancomputer interaction. (2003).","DOI":"10.1201\/b12470"},{"key":"e_1_2_1_30_1","first-page":"4","volume-title":"Proc. ACM Manag. Data 1","author":"Ding Haoran","year":"2023","unstructured":"Haoran Ding, Zhaoguo Wang, Yicun Yang, Dexin Zhang, Zhenglin Xu, Haibo Chen, Ruzica Piskac, and Jinyang Li. 2023. Proving query equivalence using linear integer arithmetic. Proc. ACM Manag. Data 1, 4 (2023), 227:1\u2013227:26."},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.14778\/3402755.3402805"},{"key":"e_1_2_1_32_1","first-page":"5091","article-title":"Survey on visual analysis of event sequence data","volume":"28","author":"Guo Yi","year":"2021","unstructured":"Yi Guo, Shunan Guo, Zhuochen Jin, Smiti Kaul, David Gotz, and Nan Cao. 2021. Survey on visual analysis of event sequence data. TVCG 28, 12 (2021), 5091\u20135112.","journal-title":"TVCG"},{"key":"e_1_2_1_33_1","volume-title":"Guy M. Lohman, and Hamid Pirahesh.","author":"Haas Laura M.","year":"1989","unstructured":"Laura M. Haas, Johann Christoph Freytag, Guy M. Lohman, and Hamid Pirahesh. 1989. Extensible Query Processing in Starburst. In SIGMOD. 377\u2013388."},{"key":"e_1_2_1_34_1","first-page":"1","article-title":"The Picasso Database Query Optimizer Visualizer","volume":"3","author":"Haritsa Jayant R.","year":"2010","unstructured":"Jayant R. Haritsa. 2010. The Picasso Database Query Optimizer Visualizer. PVLDB 3, 1\u20132 (2010), 1517\u20131520.","journal-title":"PVLDB"},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1109\/TSSC.1968.300136"},{"key":"e_1_2_1_36_1","volume-title":"Apache Drill: Interactive Ad-Hoc Analysis at Scale. Big data 1, 2","author":"Hausenblas Michael","year":"2013","unstructured":"Michael Hausenblas and Jacques Nadeau. 2013. Apache Drill: Interactive Ad-Hoc Analysis at Scale. Big data 1, 2 (2013), 100\u2013104."},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.1109\/TVCG.2013.126"},{"key":"e_1_2_1_38_1","first-page":"396","article-title":"MAQUI: Interweaving Queries and Pattern Mining for Recursive Event Sequence Exploration","volume":"25","author":"Law Po-Ming","year":"2018","unstructured":"Po-Ming Law, Zhicheng Liu, Sana Malik, and Rahul C. Basole. 2018. MAQUI: Interweaving Queries and Pattern Mining for Recursive Event Sequence Exploration. TVCG 25, 1 (2018), 396\u2013406.","journal-title":"TVCG"},{"key":"e_1_2_1_39_1","volume-title":"Swersey","author":"Ledolter Johannes","year":"2007","unstructured":"Johannes Ledolter and Arthur J. Swersey. 2007. Testing 1-2-3: experimental design with applications in marketing and service operations. Stanford University Press."},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.14778\/2850583.2850594"},{"key":"e_1_2_1_41_1","doi-asserted-by":"crossref","unstructured":"Aristotelis Leventidis Jiahui Zhang Cody Dunne Wolfgang Gatterbauer HV Jagadish and Mirek Riedewald. 2020. QueryVis: Logic-based Diagrams help Users Understand Complicated SQL Queries Faster. In SIGMOD. 2303\u20132318.","DOI":"10.1145\/3318464.3389767"},{"key":"e_1_2_1_42_1","volume-title":"Bao: Making Learned Query Optimization Practical. In SIGMOD. 1275\u20131288.","author":"Marcus Ryan","year":"2021","unstructured":"Ryan Marcus, Parimarjan Negi, Hongzi Mao, Nesime Tatbul, Mohammad Alizadeh, and Tim Kraska. 2021. Bao: Making Learned Query Optimization Practical. In SIGMOD. 1275\u20131288."},{"key":"e_1_2_1_43_1","unstructured":"Douglas C Montgomery. 2017. Design and analysis of experiments. John wiley & sons."},{"key":"e_1_2_1_44_1","doi-asserted-by":"publisher","DOI":"10.1111\/cgf.12619"},{"key":"e_1_2_1_45_1","first-page":"50","article-title":"The Star Schema Benchmark (SSB)","volume":"200","author":"O'Neil Patrick E","year":"2007","unstructured":"Patrick E O'Neil, Elizabeth J O'Neil, and Xuedong Chen. 2007. The Star Schema Benchmark (SSB). Pat 200, 0 (2007), 50.","journal-title":"Pat"},{"key":"e_1_2_1_46_1","first-page":"3563","article-title":"A State-of-the-Art Survey of Tasks for Tree Design and Evaluation With a Curated Task Dataset","volume":"28","author":"Pandey Aditeya","year":"2021","unstructured":"Aditeya Pandey, Uzma Haque Syeda, Chaitya Shah, John A Guerra-Gomez, and Michelle A Borkin. 2021. A State-of-the-Art Survey of Tasks for Tree Design and Evaluation With a Curated Task Dataset. TVCG 28, 10 (2021), 3563\u20133584.","journal-title":"TVCG"},{"key":"e_1_2_1_47_1","unstructured":"Yue Pang Linglin Yang Lei Zou and M. Tamer \u00d6zsu. 2023. gFOV: A Full-Stack SPARQL Query Optimizer & Plan Visualizer. In CIKM. 5081\u20135085."},{"key":"e_1_2_1_48_1","volume-title":"Devel-op: An optimizer development environment. In ICDE. 1278\u20131281.","author":"Peng Zhibo","year":"2014","unstructured":"Zhibo Peng, Mitch Cherniack, and Olga Papaemmanouil. 2014. Devel-op: An optimizer development environment. In ICDE. 1278\u20131281."},{"key":"e_1_2_1_49_1","doi-asserted-by":"crossref","unstructured":"Mark Raasveldt and Hannes M\u00fchleisen. 2019. DuckDB: an Embeddable Analytical Database. In SIGMOD. 1981\u20131984.","DOI":"10.1145\/3299869.3320212"},{"key":"e_1_2_1_50_1","doi-asserted-by":"crossref","unstructured":"Manuel Rigger and Zhendong Su. 2020. Detecting optimization bugs in database engines via non-optimizing reference engine construction. In FSE\/ESEC. 1140\u20131152.","DOI":"10.1145\/3368089.3409710"},{"key":"e_1_2_1_51_1","first-page":"393","article-title":"The Design Space of Implicit Hierarchy Visualization: A Survey","volume":"17","author":"Schulz Hans-Jorg","year":"2010","unstructured":"Hans-Jorg Schulz, Steffen Hadlak, and Heidrun Schumann. 2010. The Design Space of Implicit Hierarchy Visualization: A Survey. TVCG 17, 4 (2010), 393\u2013411.","journal-title":"TVCG"},{"key":"e_1_2_1_52_1","doi-asserted-by":"publisher","DOI":"10.1093\/biomet\/52.3-4.591"},{"key":"e_1_2_1_53_1","first-page":"153","article-title":"QEVIS: Multi-grained Visualization of Distributed Query Execution","volume":"30","author":"Shen Qiaomu","year":"2023","unstructured":"Qiaomu Shen, Zhengxin You, Xiao Yan, Chaozu Zhang, Ke Xu, Dan Zeng, Jianbin Qin, and Bo Tang. 2023. QEVIS: Multi-grained Visualization of Distributed Query Execution. TVCG 30, 1 (2023), 153\u2013163.","journal-title":"TVCG"},{"key":"e_1_2_1_54_1","volume-title":"Handbook of parametric and nonparametric statistical procedures","author":"Sheskin David J","unstructured":"David J Sheskin. 2003. Handbook of parametric and nonparametric statistical procedures. Chapman and hall\/CRC."},{"key":"e_1_2_1_55_1","volume-title":"Database system concepts","author":"Silberschatz Abraham","unstructured":"Abraham Silberschatz, Henry F Korth, and Shashank Sudarshan. 2011. Database system concepts. McGraw-Hill Education."},{"key":"e_1_2_1_56_1","doi-asserted-by":"crossref","unstructured":"Toni Taipalus. 2023. Query Execution Plans and Semantic Errors: Usability and Educational Opportunities. In CHI. 1\u20136.","DOI":"10.1145\/3544549.3585794"},{"key":"e_1_2_1_57_1","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/3607180","article-title":"Framework for SQL Error Message Design: A Data-Driven Approach","volume":"33","author":"Taipalus Toni","year":"2023","unstructured":"Toni Taipalus and Hilkka Grahn. 2023. Framework for SQL Error Message Design: A Data-Driven Approach. TOSEM 33, 1 (2023), 1\u201350.","journal-title":"TOSEM"},{"key":"e_1_2_1_58_1","doi-asserted-by":"publisher","DOI":"10.14778\/3554821.3554854"},{"key":"e_1_2_1_59_1","doi-asserted-by":"publisher","DOI":"10.1145\/3588909"},{"key":"e_1_2_1_60_1","doi-asserted-by":"publisher","DOI":"10.14778\/3611540.3611584"},{"key":"e_1_2_1_61_1","doi-asserted-by":"publisher","DOI":"10.14778\/1687553.1687609"},{"key":"e_1_2_1_62_1","first-page":"1","volume-title":"Proc. ACM Manag. Data 1","author":"Wang Fang","year":"2023","unstructured":"Fang Wang, Xiao Yan, Man Lung Yiu, Shuai Li, Zunyao Mao, and Bo Tang. 2023. Speeding Up End-to-end Query Execution via Learning-based Progressive Cardinality Estimation. Proc. ACM Manag. Data 1, 1 (2023), 28:1\u201328:25."},{"key":"e_1_2_1_63_1","volume-title":"ARENA: Alternative Relational Query Plan Exploration for Database Education. In Companion of the 2023 International Conference on Management of Data. 107\u2013110","author":"Wang Hu","year":"2023","unstructured":"Hu Wang, Hui Li, Sourav S Bhowmick, and Baochao Xu. 2023. ARENA: Alternative Relational Query Plan Exploration for Database Education. In Companion of the 2023 International Conference on Management of Data. 107\u2013110."},{"key":"e_1_2_1_64_1","first-page":"359","article-title":"AmbiguityVis: Visualization of Ambiguity in Graph Layouts","volume":"22","author":"Wang Yong","year":"2015","unstructured":"Yong Wang, Qiaomu Shen, Daniel Archambault, Zhiguang Zhou, Min Zhu, Sixiao Yang, and Huamin Qu. 2015. AmbiguityVis: Visualization of Ambiguity in Graph Layouts. TVCG 22, 1 (2015), 359\u2013368.","journal-title":"TVCG"},{"key":"e_1_2_1_65_1","doi-asserted-by":"crossref","unstructured":"Zhaoguo Wang Zhou Zhou Yicun Yang Haoran Ding Gansen Hu Ding Ding Chuzhe Tang Haibo Chen and Jinyang Li. 2022. WeTune: Automatic Discovery and Verification of Query Rewrite Rules. In SIGMOD. 94\u2013107.","DOI":"10.1145\/3514221.3526125"},{"key":"e_1_2_1_66_1","volume-title":"Breakthroughs in statistics: Methodology and distribution","author":"Wilcoxon Frank","unstructured":"Frank Wilcoxon. 1992. Individual comparisons by ranking methods. In Breakthroughs in statistics: Methodology and distribution. Springer, 196\u2013202."},{"key":"e_1_2_1_67_1","doi-asserted-by":"publisher","DOI":"10.14778\/3611540.3611605"},{"key":"e_1_2_1_68_1","doi-asserted-by":"publisher","DOI":"10.14778\/3342263.3342267"},{"key":"e_1_2_1_69_1","volume-title":"SPES: A Symbolic Approach to Proving Query Equivalence Under Bag Semantics. In ICDE. 2735\u20132748.","author":"Zhou Qi","year":"2022","unstructured":"Qi Zhou, Joy Arulraj, Shamkant B Navathe, William Harris, and Jinpeng Wu. 2022. SPES: A Symbolic Approach to Proving Query Equivalence Under Bag Semantics. In ICDE. 2735\u20132748."},{"key":"e_1_2_1_70_1","volume-title":"Writing Good Multiple-Choice Exams","author":"Zimmaro Dawn M.","year":"2010","unstructured":"Dawn M. Zimmaro. 2010. Writing Good Multiple-Choice Exams. Center for Teaching and Learning, UT Austin (2010)."}],"container-title":["Proceedings of the VLDB Endowment"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.14778\/3725688.3725698","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,8,29]],"date-time":"2025-08-29T14:22:42Z","timestamp":1756477362000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.14778\/3725688.3725698"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,2]]},"references-count":70,"journal-issue":{"issue":"6","published-print":{"date-parts":[[2025,2]]}},"alternative-id":["10.14778\/3725688.3725698"],"URL":"https:\/\/doi.org\/10.14778\/3725688.3725698","relation":{},"ISSN":["2150-8097"],"issn-type":[{"value":"2150-8097","type":"print"}],"subject":[],"published":{"date-parts":[[2025,2]]},"assertion":[{"value":"2025-08-29","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}