arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1804.00770cs.DB
收藏

VerdictDB:通用近似查询处理

VerdictDB: Universalizing Approximate Query Processing

Yongjoo Park, Barzan Mozafari, Joseph Sorenson, Junhao Wang

摘要:

尽管在学术界进行了25年的研究,但近似查询处理(AQP)几乎没有工业应用。这种缓慢采用的主要原因之一是传统供应商不愿意对其遗留代码库进行彻底更改,以及较新供应商(例如,SQL-on-Hadoop产品),并实现标准功能。此外,现有的几个AQP引擎都与特定的平台绑定,要求用户完全放弃现有的数据库-考虑到AQP技术的起步阶段,这是一个不切实际的期望。因此,我们认为需要一个通用的解决方案:一个与数据库无关的近似引擎,它将扩大这一新兴技术在各种平台上的影响力。我们的建议,称为VerdictDB,使用中间件架构,不需要更改后端数据库,因此,可以与所有现成的引擎。VerdictDB在驱动程序级别上运行,拦截发送到数据库的分析查询,并将其重写为另一个查询,如果由任何标准的关系引擎执行,将产生足够的信息来计算近似答案。VerdictDB使用返回的结果集来计算近似答案和错误估计,然后将其传递给用户或应用程序。然而,缺乏对查询执行层的访问在通用性、正确性和效率方面引入了重大挑战。本文展示了VerdictDB如何克服这些挑战,并为各种现有引擎(如Impala,Spark SQL和Amazon Redshift)提供高达171 $\times$的加速(平均18.45 $\times$),同时产生小于2.6%的相对误差。VerdictDB在Apache许可证下开源。

英文摘要:

Despite 25 years of research in academia, approximate query processing (AQP) has had little industrial adoption. One of the major causes of this slow adoption is the reluctance of traditional vendors to make radical changes to their legacy codebases, and the preoccupation of newer vendors (e.g., SQL-on-Hadoop products) with implementing standard features. Additionally, the few AQP engines that are available are each tied to a specific platform and require users to completely abandon their existing databases---an unrealistic expectation given the infancy of the AQP technology. Therefore, we argue that a universal solution is needed: a database-agnostic approximation engine that will widen the reach of this emerging technology across various platforms. Our proposal, called VerdictDB, uses a middleware architecture that requires no changes to the backend database, and thus, can work with all off-the-shelf engines. Operating at the driver-level, VerdictDB intercepts analytical queries issued to the database and rewrites them into another query that, if executed by any standard relational engine, will yield sufficient information for computing an approximate answer. VerdictDB uses the returned result set to compute an approximate answer and error estimates, which are then passed on to the user or application. However, lack of access to the query execution layer introduces significant challenges in terms of generality, correctness, and efficiency. This paper shows how VerdictDB overcomes these challenges and delivers up to 171$\times$ speedup (18.45$\times$ on average) for a variety of existing engines, such as Impala, Spark SQL, and Amazon Redshift, while incurring less than 2.6% relative error. VerdictDB is open-sourced under Apache License.

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

↑