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

面向云迁移的SQL方言转换

Translating between SQL Dialects for Cloud Migration

J.P. Morgan AI Research(摩根大通人工智能研究院)

Ran Zmigrod, Salwa Alamir, Xiaomo Liu

AI总结:

针对本地到云端SQL数据库迁移中方言差异导致的转换难题,本文将其定义为一个重要的工业研究问题,并提出了有前景的研究方向。

摘要:

将系统从本地机房迁移到云端一直是许多工业机构的一项基本工作。此类云迁移的一个关键组成部分是将数据库迁移至在线托管。在这项工作中,我们考虑了SQL数据库迁移所面临的困难。虽然SQL是存储数据库过程的主要方法之一,但存在大量不同的SQL方言(例如MySQL、Postgres等),当本地SQL方言与云端托管的方言不同时,这些方言可能会使迁移复杂化。AWS和Azure等常见云提供商已提供工具来帮助在不同方言之间进行转换,以缓解大部分困难。然而,这些工具并不能成功转换100%的代码。因此,软件工程师必须手动转换其余未翻译的数据库部分。对于大型组织来说,这项任务很快就会变得难以处理,因此需要更具创新性的解决方案。我们将这一挑战视为任何考虑云迁移的大型企业所面临的一个新颖且至关重要的工业研究问题。此外,我们介绍了应对这一挑战的潜在研究途径,这些途径已产生了有前景的初步结果。

英文摘要:

Migrations of systems from on-site premises to the cloud has been a fundamental endeavor by many industrial institutions. A crucial component of such cloud migrations is the transition of databases to be hosted online. In this work, we consider the difficulties of this migration for SQL databases. While SQL is one of the prominent methods for storing database procedures, there are a plethora of different SQL dialects (e.g., MySQL, Postgres, etc.) which can complicate migrations when the on-premise SQL dialect differs to the dialect hosted on the cloud. Tools exist by common cloud provides such as AWS and Azure to aid in translating between dialects in order to mitigate the majority of the difficulties. However, these tools do not successfully translate $100\%$ of the code. Consequently, software engineers must manually convert the remainder of the untranslated database. For large organizations, this task quickly becomes intractable and so more innovative solutions are required. We consider this challenge a novel yet vital industrial research problem for any large corporation that is considering cloud migrations. Furthermore, we introduce potential avenues of research to tackle this challenge that have yielded promising preliminary results.

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

↑