SQL (Structured Query Language) sentence processing system based on cloud computing
A technology for processing systems and statements, applied in the field of database processing, can solve problems such as large memory and CPU usage of the system, slow running speed, task execution failure, etc., to optimize CPU and memory, reduce traffic consumption, and improve running speed Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] refer to figure 1 As shown, the preferred embodiment of the present invention provides a kind of SQL statement processing system based on cloud computing, comprising:
[0031] Compile the parser, which is used to convert the text of the received SQL statement or stored procedure into the corresponding atomic object;
[0032] The merge optimizer is used to traverse the atomic objects of each SQL statement, and extract the atomic objects with the same content as a common atomic object;
[0033] The execution monitor is used to receive the atomic objects processed by the merging optimizer, assign independent executable components to each atomic object, and obtain calculation results by running the executable components.
[0034] There are many kinds of data sources containing SQL statements, including relational databases, hadoop, hbase, hypertable, etc. In order to adapt to reading and writing different data sources and data formats (including files or binary, etc.), the...
Embodiment 2
[0045] This preferred embodiment is illustrated by specific examples to further explain the present invention.
[0046] Take the two SQL statements submitted in batches as an example:
[0047] SQL1: select a,(a+b) as c, count(*) from t where a+b > 0 group by a, (a+b);
[0048] SQL2: select (a+b) as c, count(*) from t where a+b + d > 100 group by (a+b).
[0049] refer to figure 2 As shown, first, by compiling the parser, each sql statement is decomposed into a syntax tree, and the branch nodes are decomposed into atomic objects (fields, table names, functions, grouping objects) with the smallest granularity. The decomposed results are shown in the figure content. Taking SQL1 as an example, after decomposition, a, (a+b) as c are field objects, count(*) is a function object, and a+b in (a+b) as c is field objects a, b and operation The combination of object +, the table object is t, the search condition is a+b > 0, and the condition a+b > 0 is also the combination of field o...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com