{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,6,13]],"date-time":"2026-06-13T04:57:51Z","timestamp":1781326671050,"version":"3.54.1"},"reference-count":62,"publisher":"Association for Computing Machinery (ACM)","issue":"4","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Manag. Data"],"published-print":{"date-parts":[[2025,9,22]]},"abstract":"<jats:p>Graph databases (GDBs) are increasingly used in many applications. However, their advanced features make them prone to logic bugs. Despite advances in GDB testing, a common limitation of current approaches is the lack of ground truth for their test oracles. This results in both incorrectly identified bugs and overlooked bugs.<\/jats:p>\n                  <jats:p>We introduce GQS (Graph Query Synthesis), the first automated testing approach for detecting logic bugs in graph databases (GDBs) based on an established ground truth. GQS starts by randomly generating a graph and selecting a set of properties associated with its elements, whose key-value pairs form the expected result set serving as the ground truth. It then synthesizes a query that should retrieve these values from the graph. When the query is executed on the graph by the GDB under test, any discrepancy between the actual result set and the ground truth indicates a logic bug. To extensively test a GDB, we develop novel techniques that synthesize both syntactically and semantically complex queries.<\/jats:p>\n                  <jats:p>We implement GQS in a tool that incorporates the first Cypher query synthesizer specifically designed for testing GDBs. Our tool finds 36 previously unknown bugs across four production GDBs, of which 26 are logic bugs, with some remaining undetected for up to five years. Additionally, our tool demonstrates superior effectiveness in bug detection compared to the state-of-the-art testers.<\/jats:p>","DOI":"10.1145\/3749186","type":"journal-article","created":{"date-parts":[[2025,9,23]],"date-time":"2025-09-23T17:17:03Z","timestamp":1758647823000},"page":"1-26","source":"Crossref","is-referenced-by-count":3,"title":["Testing Graph Databases with Synthesized Queries"],"prefix":"10.1145","volume":"3","author":[{"ORCID":"https:\/\/orcid.org\/0009-0005-9127-2136","authenticated-orcid":false,"given":"Zijing","family":"Yin","sequence":"first","affiliation":[{"name":"ETH Zurich, Zurich, Switzerland"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-3578-7432","authenticated-orcid":false,"given":"Si","family":"Liu","sequence":"additional","affiliation":[{"name":"ETH Zurich, Zurich, Switzerland"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-2952-939X","authenticated-orcid":false,"given":"David","family":"Basin","sequence":"additional","affiliation":[{"name":"ETH Zurich, Zurich, Switzerland"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2025,9,23]]},"reference":[{"key":"e_1_2_1_1_1","volume-title":"Accessed","author":"IEC","year":"2024","unstructured":"ISO\/IEC 39075:2024. Accessed in July, 2024. Information technology - Database languages - GQL. https:\/\/www.iso.org\/standard\/76120.html."},{"key":"e_1_2_1_2_1","unstructured":"Atul Adya. 1999. Weak consistency: a generalized theory and optimistic implementations for distributed transactions. Ph.D. Dissertation. Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science."},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/3654991"},{"key":"e_1_2_1_4_1","first-page":"125","volume-title":"Proceedings of the 1st International Conference on Information Processing, UNESCO","author":"Backus John W.","year":"1959","unstructured":"John W. Backus. 1959. The syntax and semantics of the proposed international algebraic language of the Zurich ACM-GAMM Conference. In Information Processing, Proceedings of the 1st International Conference on Information Processing, UNESCO, Paris 15-20 June 1959. UNESCO (Paris), 125-131."},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.14778\/2732232.2732237"},{"key":"e_1_2_1_6_1","volume-title":"ACM Comput. Surv.","volume":"56","author":"Besta Maciej","year":"2023","unstructured":"Maciej Besta, Robert Gerstenberger, Emanuel Peter, Marc Fischer, Micha\u0142 Podstawski, Claude Barthels, Gustavo Alonso, and Torsten Hoefler. 2023. Demystifying Graph Databases: Analysis and Taxonomy of Data Organization, System Designs, and Graph Queries. ACM Comput. Surv., Vol. 56, 2, Article 31 (sep 2023)."},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/3360591"},{"key":"e_1_2_1_8_1","doi-asserted-by":"crossref","unstructured":"Angela Bonifati George H. L. Fletcher Hannes Voigt and Nikolay Yakovets. 2018. Querying Graphs. Morgan & Claypool Publishers.","DOI":"10.1007\/978-3-031-01864-0"},{"key":"e_1_2_1_9_1","volume-title":"Metamorphic Testing: A New Approach for Generating Next Test Cases. CoRR","author":"Chen Tsong Yueh","year":"2020","unstructured":"Tsong Yueh Chen, S. C. Cheung, and Siu-Ming Yiu. 2020. Metamorphic Testing: A New Approach for Generating Next Test Cases. CoRR, Vol. abs\/2002.12543 (2020). arXiv:2002.12543 https:\/\/arxiv.org\/abs\/2002.12543"},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/2491956.2462173"},{"key":"e_1_2_1_11_1","volume-title":"Accessed","year":"2024","unstructured":"Cypher. Accessed in July, 2024. https:\/\/neo4j.com\/docs\/cypher-manual\/current\/introduction\/."},{"key":"e_1_2_1_12_1","volume-title":"Accessed","author":"DB.","year":"2024","unstructured":"FalkorDB. Accessed in July, 2024. https:\/\/www.falkordb.com\/."},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.14778\/3718057.3718065"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.14778\/3685800.3685866"},{"key":"e_1_2_1_15_1","first-page":"345","volume-title":"Pinolo: Detecting Logical Bugs in Database Management Systems with Approximate Query Synthesis. In USENIX ATC '23","author":"Hao Zongyin","year":"2023","unstructured":"Zongyin Hao, Quanfeng Huang, Chengpeng Wang, Jianfeng Wang, Yushan Zhang, Rongxin Wu, and Charles Zhang. 2023. Pinolo: Detecting Logical Bugs in Database Management Systems with Approximate Query Synthesis. In USENIX ATC '23. USENIX Association, 345-358."},{"key":"e_1_2_1_16_1","first-page":"163","volume-title":"GDsmith: Detecting Bugs in Cypher Graph Database Engines. In ISSTA '23","author":"Hua Ziyue","year":"2023","unstructured":"Ziyue Hua, Wei Lin, Luyao Ren, Zongyang Li, Lu Zhang, Wenpin Jiao, and Tao Xie. 2023. GDsmith: Detecting Bugs in Cypher Graph Database Engines. In ISSTA '23. ACM, 163-174."},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.14778\/3583140.3583145"},{"key":"e_1_2_1_18_1","volume-title":"Accessed","year":"2025","unstructured":"JanusGraph. Accessed in April, 2025. https:\/\/janusgraph.org\/."},{"key":"e_1_2_1_19_1","volume-title":"ICSE '24","author":"Jiang Yuancheng","unstructured":"Yuancheng Jiang, Jiahao Liu, Jinsheng Ba, Roland H. C. Yap, Zhenkai Liang, and Manuel Rigger. 2024. Detecting Logic Bugs in Graph Database Management Systems via Injective and Surjective Graph Query Transformation. In ICSE '24. ACM, Article 46."},{"key":"e_1_2_1_20_1","first-page":"397","volume-title":"OSDI '23","author":"Jiang Zu-Ming","year":"2023","unstructured":"Zu-Ming Jiang, Si Liu, Manuel Rigger, and Zhendong Su. 2023. Detecting Transactional Bugs in Database Engines via Graph-Based Oracle Construction. In OSDI '23. 397-417."},{"key":"e_1_2_1_21_1","first-page":"821","volume-title":"OSDI '24","author":"Jiang Zu-Ming","year":"2024","unstructured":"Zu-Ming Jiang and Zhendong Su. 2024. Detecting Logic Bugs in Database Engines via Equivalent Expression Transformation. In OSDI '24. USENIX Association, 821-835."},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/3597926.3598044"},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.14778\/3430915.3430918"},{"key":"e_1_2_1_24_1","volume-title":"Accessed","year":"2024","unstructured":"K\u00f9zu. Accessed in July, 2024. https:\/\/kuzudb.com\/."},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-91560-5_39"},{"key":"e_1_2_1_26_1","volume-title":"Accessed","author":"Liang Jerry","year":"2025","unstructured":"Jerry Liang. Accessed in April, 2025. openCypher Transpiler. https:\/\/github.com\/microsoft\/openCypherTranspiler."},{"key":"e_1_2_1_27_1","volume-title":"Accessed","author":"Library Cypher Parser","year":"2024","unstructured":"Cypher Parser Library. Accessed in July, 2024. libcypher-parser. https:\/\/github.com\/cleishm\/libcypher-parser"},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/3689742"},{"key":"e_1_2_1_29_1","volume-title":"NOC-NOC: Towards Performance-optimal Distributed Transactions. Proc. ACM Manag. Data","volume":"2","author":"Liu Si","year":"2024","unstructured":"Si Liu, Luca Multazzu, Hengfeng Wei, and David A. Basin. 2024b. NOC-NOC: Towards Performance-optimal Distributed Transactions. Proc. ACM Manag. Data, Vol. 2, 1, Article 9 (mar 2024)."},{"key":"e_1_2_1_30_1","volume-title":"Automatic Analysis of Consistency Properties of Distributed Transaction Systems in Maude. In TACAS 2019 (LNCS","volume":"57","author":"Liu Si","year":"2019","unstructured":"Si Liu, Peter Csaba \u00d6lveczky, Min Zhang, Qi Wang, and Jos\u00e9 Meseguer. 2019. Automatic Analysis of Consistency Properties of Distributed Transaction Systems in Maude. In TACAS 2019 (LNCS, Vol. 11428). Springer, 40-57."},{"key":"e_1_2_1_31_1","volume-title":"Proc. ACM Program. Lang.","volume":"2","author":"Majumdar Rupak","year":"2017","unstructured":"Rupak Majumdar and Filip Niksic. 2017. Why is random testing effective for partition tolerance bugs? Proc. ACM Program. Lang., Vol. 2, POPL, Article 46 (Dec. 2017), 24 pages."},{"key":"e_1_2_1_32_1","volume-title":"Accessed","author":"Malenchino Valerio","year":"2024","unstructured":"Valerio Malenchino. Accessed in July, 2024. GQL is Here: Your Cypher Queries in a GQL World. https:\/\/neo4j.com\/blog\/cypher-gql-world\/."},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.1145\/3597503.3639200"},{"key":"e_1_2_1_34_1","first-page":"100","article-title":"Differential Testing for Software","volume":"10","author":"McKeeman William M.","year":"1998","unstructured":"William M. McKeeman. 1998. Differential Testing for Software. Digit. Tech. J., Vol. 10, 1 (1998), 100-107.","journal-title":"Digit. Tech. J."},{"key":"e_1_2_1_35_1","volume-title":"Accessed","year":"2024","unstructured":"Memgraph. Accessed in July, 2024. https:\/\/memgraph.com\/."},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1609\/aaai.v35i7.16799"},{"key":"e_1_2_1_37_1","volume-title":"Theories of Programming: The Life and Works of Tony Hoare","author":"M\u00fcller Peter","unstructured":"Peter M\u00fcller and Natarajan Shankar. 2021. The First Fifteen Years of the Verified Software Project. In Theories of Programming: The Life and Works of Tony Hoare. ACM Books, Vol. 39. ACM \/ Morgan & Claypool, 93-124."},{"key":"e_1_2_1_38_1","volume-title":"Accessed","year":"2025","unstructured":"Neo4j. Accessed in April, 2025. SQL to Cypher translation. https:\/\/neo4j.com\/docs\/jdbc-manual\/current\/sql2cypher\/."},{"key":"e_1_2_1_39_1","volume-title":"Accessed","year":"2024","unstructured":"Neo4j. Accessed in July, 2024. https:\/\/neo4j.com\/."},{"key":"e_1_2_1_40_1","volume-title":"Accessed","year":"2024","unstructured":"openCypher. Accessed in July, 2024 a. https:\/\/opencypher.org\/."},{"key":"e_1_2_1_41_1","volume-title":"Accessed","year":"2024","unstructured":"openCypher. Accessed in July, 2024 b. Cypher for Gremlin. https:\/\/github.com\/opencypher\/cypher-for-gremlin."},{"key":"e_1_2_1_42_1","volume-title":"Accessed","year":"2024","unstructured":"openCypher. Accessed in July, 2024 c. Cypher Query Language Reference, Version 9. https:\/\/s3.amazonaws.com\/artifacts.opencypher.org\/openCypher9.pdf."},{"key":"e_1_2_1_43_1","volume-title":"Accessed","author":"Rathle Philip","year":"2024","unstructured":"Philip Rathle and Brad Bebee. Accessed in July, 2024. GQL: The ISO standard for graphs has arrived. https:\/\/aws.amazon.com\/blogs\/database\/gql-the-iso-standard-for-graphs-has-arrived\/."},{"key":"e_1_2_1_44_1","volume-title":"Accessed","year":"2024","unstructured":"RedisGraph. Accessed in July, 2024. https:\/\/github.com\/RedisGraph\/RedisGraph."},{"key":"e_1_2_1_45_1","doi-asserted-by":"publisher","DOI":"10.1145\/3368089.3409710"},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1145\/3428279"},{"key":"e_1_2_1_47_1","first-page":"667","volume-title":"OSDI '20","author":"Rigger Manuel","year":"2020","unstructured":"Manuel Rigger and Zhendong Su. 2020c. Testing Database Engines via Pivoted Query Synthesis. In OSDI '20. USENIX Association, 667-682."},{"key":"e_1_2_1_48_1","doi-asserted-by":"publisher","DOI":"10.1145\/2815072.2815073"},{"key":"e_1_2_1_49_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE48619.2023.00175"},{"key":"e_1_2_1_50_1","doi-asserted-by":"publisher","DOI":"10.14778\/3659437.3659445"},{"key":"e_1_2_1_51_1","doi-asserted-by":"publisher","DOI":"10.1145\/2983990.2984027"},{"key":"e_1_2_1_52_1","doi-asserted-by":"publisher","DOI":"10.14778\/3476249.3476253"},{"key":"e_1_2_1_53_1","volume-title":"COBRA: Making Transactional Key-Value Stores Verifiably Serializable (OSDI '20)","author":"Tan Cheng","year":"2020","unstructured":"Cheng Tan, Changgeng Zhao, Shuai Mu, and Michael Walfish. 2020. COBRA: Making Transactional Key-Value Stores Verifiably Serializable (OSDI '20). USENIX Association, Article 4."},{"key":"e_1_2_1_54_1","doi-asserted-by":"publisher","DOI":"10.1145\/3588909"},{"key":"e_1_2_1_55_1","doi-asserted-by":"publisher","DOI":"10.1145\/3453483.3454098"},{"key":"e_1_2_1_56_1","doi-asserted-by":"publisher","DOI":"10.1145\/3062341.3062365"},{"key":"e_1_2_1_57_1","doi-asserted-by":"publisher","DOI":"10.1145\/2771783.2771797"},{"key":"e_1_2_1_58_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICDE65448.2025.00298"},{"key":"e_1_2_1_59_1","first-page":"654","volume-title":"Viper: A Fast Snapshot Isolation Checker. In EuroSys '23","author":"Zhang Jian","year":"2023","unstructured":"Jian Zhang, Ye Ji, Shuai Mu, and Cheng Tan. 2023. Viper: A Fast Snapshot Isolation Checker. In EuroSys '23. ACM, 654-671."},{"key":"e_1_2_1_60_1","doi-asserted-by":"publisher","DOI":"10.1109\/ASE.2013.6693082"},{"key":"e_1_2_1_61_1","doi-asserted-by":"publisher","DOI":"10.1145\/3533767.3534409"},{"key":"e_1_2_1_62_1","first-page":"4","article-title":"Testing Graph Database Systems via Graph-Aware Metamorphic Relations","volume":"17","author":"Zhuang Zeyang","year":"2024","unstructured":"Zeyang Zhuang, Penghui Li, Pingchuan Ma, Wei Meng, and Shuai Wang. 2024. Testing Graph Database Systems via Graph-Aware Metamorphic Relations. Proc. VLDB Endow., Vol. 17, 4 (mar 2024), 836-848.","journal-title":"Proc. VLDB Endow."}],"container-title":["Proceedings of the ACM on Management of Data"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3749186","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,6,13]],"date-time":"2026-06-13T04:38:49Z","timestamp":1781325529000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3749186"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,9,22]]},"references-count":62,"journal-issue":{"issue":"4","published-print":{"date-parts":[[2025,9,22]]}},"alternative-id":["10.1145\/3749186"],"URL":"https:\/\/doi.org\/10.1145\/3749186","relation":{},"ISSN":["2836-6573"],"issn-type":[{"value":"2836-6573","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,9,22]]}}}