hottub.patents
US 12,423,299 B2#3438994 Most CitedActiveUnited States (USPTO)Utility

Method and system for imitation conversion fixes between Structured Query Language (SQL) dialects

0Forward Citations (#3438994 Global)
0.0/yrCitation Velocity (#3438994 Global)
0.00Citation PageRank (#3438994 Global)
8Prior Art Cited
8Claims (1 Indep. · 7 Dep.)
0Drawings / Sheets

Abstract

A system for correcting a Structured Query Language (SQL) dialect conversion error. The system may include a processor and memory that stores instructions that, when executed by the processor, cause the processor to perform operations. The operations may include: receiving a first partially converted SQL file that has been partially converted from a first SQL dialect into a second SQL dialect; extracting, from the first partially converted SQL file, at least one first unconverted SQL snippet; deriving at least one first transformation; determining whether the at least one first transformation includes an appropriate set of at least one transformation for correcting a corresponding SQL conversion error; and associating the appropriate set of at least one transformation with the at least one first unconverted SQL snippet.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 0.

Claims (8 — 1 Independent, 7 Dependent)

  1. Claim 1Independent Claim

    A method for correcting a Structured Query Language (SQL) dialect conversion error, the method comprising: receiving a first partially converted SQL file that has been partially converted from a first SQL dialect into a second SQL dialect; extracting, from the first partially converted SQL file, at least one first unconverted SQL snippet; deriving at least one first transformation, wherein the deriving the at least one first transformation comprises: parsing the at least one first unconverted SQL snippet into a first SQL dialect-independent tree, wherein the first SQL dialect-independent tree comprises a SQL dialect-independent tree representation of the at least one first unconverted SQL snippet; obtaining at least one first converted SQL snippet that includes a first set of code, wherein the at least one first unconverted SQL snippet includes a second set of code, wherein the first set of code and the second set of code include common information, and wherein the first set of code an

  2. Claim 2Depends on #1

    The method of claim 1, wherein the at least one transformation comprises at least one type of transformation from among insert, delete, and replace, wherein the replace type of transformation comprises the insert and the delete types of transformations.

  3. Claim 3Depends on #1

    The method of claim 1, further comprising: receiving a second partially converted SQL file that has been partially converted from the first SQL dialect into the second SQL dialect; extracting, from the second partially converted SQL file, at least one second unconverted SQL snippet; determining that the at least one second unconverted SQL snippet is the same as the first partially unconverted SQL snippet; and converting the at least one second unconverted SQL snippet into the second SQL dialect of the at least one second unconverted SQL snippet.

  4. Claim 4Depends on #3

    The method of claim 3, wherein the converting further comprises: parsing the at least one second unconverted SQL snippet into a SQL dialect-independent tree representation of the at least one second unconverted SQL snippet; generating a SQL dialect-independent tree representation of at least one second converted SQL snippet by applying the appropriate set of the at least one transformation to the SQL dialect-independent tree representation of the at least one second unconverted SQL snippet; and parsing the SQL dialect-independent tree representation of the at least one second converted SQL snippet into the second SQL dialect of the at least one second unconverted SQL snippet.

  5. Claim 5Depends on #1

    The method of claim 1, wherein the determining comprises: providing, to a validator, the at least one first unconverted SQL snippet and the at least one first converted SQL snippet; when the at least one first converted SQL snippet comprises the second SQL dialect of the at least one first unconverted SQL snippet: receiving, from the validator, confirmation that the at least one first transformation includes the appropriate set of the at least one transformation; and when the at least one first converted SQL snippet does not comprise the second SQL dialect of the at least one first unconverted SQL snippet: receiving, from the validator, the second SQL dialect of the at least one first unconverted SQL snippet; and determining the appropriate set of the at least one transformation.

  6. Claim 6Depends on #5

    The method of claim 5, wherein the validator comprises at least one from among: a user, a computer specialist, and an artificial intelligence and machine learning (AI/ML) model.

  7. Claim 7Depends on #5

    The method of claim 5, wherein the determining the appropriate set of the at least one transformation comprises: parsing the second SQL dialect of the at least one first converted SQL snippet into a third SQL dialect-independent tree, wherein the third SQL dialect-independent tree comprises the SQL dialect-independent tree representation of the second SQL dialect of the at least one first unconverted SQL snippet; determining, by comparing the first SQL dialect-independent tree to the third SQL dialect-independent tree, at least one second tree transformation difference; and determining, based on the at least one second tree transformation difference, the appropriate set of the at least one transformation, wherein the appropriate set of the at least one transformation is required to convert the first SQL dialect-independent tree into the third SQL dialect-independent tree.

  8. Claim 8Depends on #7

    The method of claim 7, further comprising: deriving the at least one transformation based on at least one tree transformation difference, wherein the deriving the at least one transformation further comprises: following a first path of a first tree and a second path of a second tree; determining at least one difference between at least one first branch along the first path and at least one second branch along the second path; and determining the at least one transformation that eliminates the at least one difference when the at least one transformation is performed on the first tree.

Technical Overview & Description

CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority benefit from Indian application No. 202311032063, filed May 5, 2023, which is hereby incorporated by reference in its entirety. BACKGROUND 1. Field of the Invention The field of the invention disclosed herein generally relates to a system for correcting a Structured Query Language (SQL) dialect conversion error and, more particularly, to a method, system, and computer-readable storage medium for utilizing imitation conversion fixes to correct SQL dialect conversion errors such as the SQL dialect conversion errors that may arise when migrating one or more electronic databases into the cloud. 2. Background of the Invention In the computing industry, the term “ cloud ” has been used to refer to distributed computing platforms since the early 1990s. Since then, the term “ cloud ” has become ubiquitous with a range of distributed computing services that are currently being offered by various technology companies around the globe. These companies use economies of scale to lower the costs of such cloud services by purchasing their resources in massive quantities. The savings, scalability, and other advantages that are offered by these services, have motivated many companies to migrate their computing platforms into the cloud. Current cloud migration efforts aim to migrate on-premise services, such as those provided by electronic databases, into the cloud (i.e., off-premises). However, with regard to electronic databases, differences may exist between the Structured Query Language (SQL) dialect of an on-premise source database and that of its corresponding target database located in the cloud. Additionally, conventional SQL dialect converters cannot fully convert such databases from a first SQL dialect into another SQL dialect. Therefore, conventional SQL dialect converters leave developers with the cumbersome and time-consuming task of manually converting thousands of lines of unconverted code from th

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

References Cited — Backward Prior Art (8)

PatentTitleYearCitations

Non-Patent Literature (10)

  • Feasel, Kevin, and Kevin Feasel.
  • “
  • Common Hadoop and Blob Storage Integration Errors.
  • ”
  • PolyBase Revealed: Data Virtualization with SQL Server, Hadoop, Apache Spark, and Beyond (2020): 127-149. (Year: 2020).
  • Wang, Yi, Yang Yang, Weiguo Zhu, Yi Wu, Xu Yan, Yongfeng Liu, Yu Wang et al.
  • “
  • Sqlflow: A bridge between SQL and machine learning.
  • ”
  • arXiv preprint arXiv:2001.06846 (2020). (Year: 2020).