Unlock instant, AI-driven research and patent intelligence for your innovation.

Automatic statement conversion method and device

A technology of automatic conversion and statement, applied in special data processing applications, instruments, electrical and digital data processing, etc., can solve problems such as unsupported, logical errors, and low efficiency

Active Publication Date: 2020-07-07
BEIJING BOCO COMM TECH
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] For the above scheme a), since the current big data processing-oriented databases or computing frameworks (such as GreenPlum and Spark) are all analysis-oriented, the support for the update operation in the original processing logic is very weak or does not support, if the existing If there is an update statement in the SQL sequence, the efficiency will be very low or it will not be supported directly
[0009] The above scheme b) is a manual transplantation scheme, which has a large workload of transplantation (one SQL has hundreds of fields), and it is easy to cause logic errors. The workload of data verification and comparison between the old and new systems is very huge

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Automatic statement conversion method and device
  • Automatic statement conversion method and device
  • Automatic statement conversion method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0074] see figure 1 , gives Embodiment 1 of the present invention, a method for automatic sentence conversion.

[0075] Step S00: Divide the original SQL statement into statement sequences, and obtain INSERT statements, UPDATE statements, and CREATE statements corresponding to the operation targets of the original statements in the statement sequences.

[0076] Step S01: a preprocessing step.

[0077] Step S011: Sequentially parse and acquire the semantic values ​​of the INSERT statement and the UPDATE statement, and store the parsed results in a preset storage structure according to the type and operation target.

[0078] Parse the semantic values ​​such as the type, operation target, value, and expression of the INSERT statement, and store them according to the double-layer keyword-value preset storage structure.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

An automatic statement conversion method divides an original SQL statement into statement sequences, and comprises: a preprocessing step, i.e., sequentially analyzing and obtaining semantic values ofan INSERT statement and a UPDATE statement, and respectively storing analysis results in a preset storage structure; obtaining an operation target, a condition and assignment information of a simple UPDATE statement, and filling a merged storage position of the INSERT statement with the same operation target as the UPDATE statement with the condition and assignment information of the UPDATE statement; a conversion step, i.e., sequentially converting and outputting the statement sequences subjected to the preprocessing step; directly outputting the CREATE statement and combining the INSERT statement with the null content in the storage position; updating and outputting the INSERT statement in the merged storage position; and outputting the complex UPDATE statement subjected to conversion. The invention further discloses an automatic statement conversion device. According to the method and the device, the UPDATE statement is automatically converted into the INSERT statement.

Description

technical field [0001] The invention relates to the software industry, and more specifically, relates to a sentence conversion technology. Background technique [0002] With the continuous expansion of network scale and rapid data growth, traditional data processing methods based on relational databases have become more and more inadequate. The most economical and smooth way to transition to big data technology is to directly reuse a series of SQL statements written in the original data processing process, which can ensure that the original business logic remains unchanged, but only changes the underlying execution engine. [0003] The biggest problem in the migration process is that the current big data processing-oriented databases or computing frameworks (such as Greenplum and Spark) are all analysis-oriented, and the support for the update operation in the original processing logic is very weak or not supported. It is necessary to provide an automatic conversion tool t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/242
CPCY02D10/00
Inventor 张凤桥高建军康宁
Owner BEIJING BOCO COMM TECH