arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.06102cs.DBcs.PLcs.SE
收藏

使用集合抽象合成文档数据库查询

Synthesizing Document Database Queries using Collection Abstractions

Qikang Liu, Yang He, Yanwen Cai, Byeongguk Kwak, Yuepeng Wang

AI总结:

针对文档数据库查询难写的问题,提出基于输入-输出示例的查询合成方法,通过新型DSL与集合抽象剪枝搜索,在110个基准中成功合成108个。

摘要:

文档数据库在各类应用中日益流行,但由于其底层灵活且复杂的数据模型,查询编写颇具挑战。本文提出一种合成技术,旨在根据输入-输出示例自动生成文档数据库查询。作者设计了一种新的领域特定语言,以代数风格表达一组具有代表性的文档数据库查询。此外,该合成技术利用一种新颖的集合抽象进行推导,以高效剪枝搜索空间并快速生成目标查询。对来自不同来源的110个基准进行的评估表明,所提技术能够成功合成108个基准。平均而言,该合成器可在数十秒内根据少量输入-输出示例生成文档数据库查询。

英文摘要:

Document databases are increasingly popular in various applications, but their queries are challenging to write due to the flexible and complex data model underlying document databases. This paper presents a synthesis technique that aims to generate document database queries from input-output examples automatically. A new domain-specific language is designed to express a representative set of document database queries in an algebraic style. Furthermore, the synthesis technique leverages a novel abstraction of collections for deduction to efficiently prune the search space and quickly generate the target query. An evaluation of 110 benchmarks from various sources shows that the proposed technique can synthesize 108 benchmarks successfully. On average, the synthesizer can generate document database queries from a small number of input-output examples within tens of seconds.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑